Commit dae84204 by Piotr Mitros

Support for static pages added

parent b2c89cff
...@@ -9,8 +9,7 @@ from django.core.context_processors import csrf ...@@ -9,8 +9,7 @@ from django.core.context_processors import csrf
from django.conf import settings from django.conf import settings
#valid_templates=['index.html', 'staff.html', 'info.html', 'credits.html'] #valid_templates=['index.html', 'staff.html', 'info.html', 'credits.html']
valid_templates=['mitx_global.html', valid_templates=['index.html',
'index.html',
'tos.html', 'tos.html',
'privacy.html', 'privacy.html',
'honor.html', 'honor.html',
...@@ -22,7 +21,12 @@ print "!!",settings.__dict__ ...@@ -22,7 +21,12 @@ print "!!",settings.__dict__
if settings.STATIC_GRAB: if settings.STATIC_GRAB:
valid_templates = valid_templates+['server-down.html', valid_templates = valid_templates+['server-down.html',
'server-error.html' 'server-error.html'
'server-overloaded.html'] 'server-overloaded.html',
'mitx_global.html',
'mitx-overview.html',
'6002x-faq.html',
'6002x-press-release.html'
]
def index(request, template): def index(request, template):
csrf_token = csrf(request)['csrf_token'] csrf_token = csrf(request)['csrf_token']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment