django-ex/openshift/views.py

8 lines
193 B
Python
Raw Normal View History

2015-05-24 13:56:43 +02:00
import os
2015-05-24 13:10:47 +02:00
from django.shortcuts import render
# Create your views here.
def index(request):
2015-05-24 13:56:43 +02:00
return render(request, 'openshift/index.html', {'HOSTNAME': os.getenv('HOSTNAME', 'unknown')})