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">
|
||||
<p>
|
||||
Server hostname: {{ HOSTNAME }}<br>
|
||||
Server hostname: {{ hostname }}<br>
|
||||
Page views: {{ count }}
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
@ -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()
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue