From 00dccbbc3144974c6c5c232e6c2d3975d97d2046 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Mon, 25 May 2015 20:54:23 +0200 Subject: [PATCH] Lowercase template variable --- openshift/templates/openshift/index.html | 2 +- openshift/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openshift/templates/openshift/index.html b/openshift/templates/openshift/index.html index a2a3a2a6..3bba9713 100644 --- a/openshift/templates/openshift/index.html +++ b/openshift/templates/openshift/index.html @@ -50,7 +50,7 @@

- Server hostname: {{ HOSTNAME }}
+ Server hostname: {{ hostname }}
Page views: {{ count }}

diff --git a/openshift/views.py b/openshift/views.py index 59287575..679bbe99 100644 --- a/openshift/views.py +++ b/openshift/views.py @@ -9,6 +9,6 @@ def index(request): hostname = os.getenv('HOSTNAME', 'unknown') PageView.objects.create(hostname=hostname) return render(request, 'openshift/index.html', { - 'HOSTNAME': hostname, + 'hostname': hostname, 'count': PageView.objects.count() })