Lowercase template variable

This commit is contained in:
Rodolfo Carvalho 2015-05-25 20:54:23 +02:00
parent 86f8f20776
commit 00dccbbc31
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@
<div id="hostname">
<p>
Server hostname: {{ HOSTNAME }}<br>
Server hostname: {{ hostname }}<br>
Page views: {{ count }}
</p>
</div>

View file

@ -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()
})