Lowercase template variable
This commit is contained in:
parent
86f8f20776
commit
00dccbbc31
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||||
|
|
|
@ -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()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue