diff --git a/openshift/templates/openshift/index.html b/openshift/templates/openshift/index.html index 62e16b6..b2215ed 100644 --- a/openshift/templates/openshift/index.html +++ b/openshift/templates/openshift/index.html @@ -10,8 +10,7 @@ body>div { border-bottom:1px solid #ddd; } h1 { font-weight:normal; } code { background: #ffd; } - #summary { background: #34383c; } - #summary h1 { color: #fff; } + #summary, #hostname { background: #34383c; color: #fff; } #explanation { background:#eee; } #instructions { background:#f6f6f6; } #instructions ol li { margin: 0.2em 0 0.2em 2em; } @@ -47,4 +46,10 @@ before taking this project into a production environment.

+ +
+

+ Server hostname: {{ HOSTNAME }} +

+
diff --git a/openshift/views.py b/openshift/views.py index 22b5bb7..81d899d 100644 --- a/openshift/views.py +++ b/openshift/views.py @@ -1,6 +1,7 @@ +import os from django.shortcuts import render # Create your views here. def index(request): - return render(request, 'openshift/index.html') + return render(request, 'openshift/index.html', {'HOSTNAME': os.getenv('HOSTNAME', 'unknown')})