Browse Source

Lowercase template variable

pull/2/merge
Rodolfo Carvalho 10 years ago
parent
commit
00dccbbc31
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      openshift/templates/openshift/index.html
  2. +1
    -1
      openshift/views.py

+ 1
- 1
openshift/templates/openshift/index.html View File

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


+ 1
- 1
openshift/views.py 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()
})

Loading…
Cancel
Save