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"> <div id="hostname">
<p> <p>
Server hostname: {{ HOSTNAME }}<br> Server hostname: {{ hostname }}<br>
Page views: {{ count }} Page views: {{ count }}
</p> </p>
</div> </div>

View file

@ -9,6 +9,6 @@ def index(request):
hostname = os.getenv('HOSTNAME', 'unknown') hostname = os.getenv('HOSTNAME', 'unknown')
PageView.objects.create(hostname=hostname) PageView.objects.create(hostname=hostname)
return render(request, 'openshift/index.html', { return render(request, 'openshift/index.html', {
'HOSTNAME': hostname, 'hostname': hostname,
'count': PageView.objects.count() 'count': PageView.objects.count()
}) })