summaryrefslogtreecommitdiff
path: root/testapp
diff options
context:
space:
mode:
Diffstat (limited to 'testapp')
-rw-r--r--testapp/exam/views.py4
-rw-r--r--testapp/production.py1
2 files changed, 3 insertions, 2 deletions
diff --git a/testapp/exam/views.py b/testapp/exam/views.py
index 4956f84..4c47004 100644
--- a/testapp/exam/views.py
+++ b/testapp/exam/views.py
@@ -476,8 +476,8 @@ def automatic_questionpaper(request, questionpaper_id=None):
context = {'data': {'questions': fetched_questions,
'tags': tags,
'msg': msg}}
- return my_render_to_response\
- ('exam/automatic_questionpaper.html', context,
+ return my_render_to_response(
+ 'exam/automatic_questionpaper.html', context,
context_instance=RequestContext(request))
else:
tags = Tag.objects.all()
diff --git a/testapp/production.py b/testapp/production.py
index 636785f..312e838 100644
--- a/testapp/production.py
+++ b/testapp/production.py
@@ -2,6 +2,7 @@ from testapp.settings import *
DEBUG=False
TEMPLATE_DEBUG=DEBUG
+from testapp.local import *
DATABASE_ENGINE = 'django.db.backends.mysql'
DATABASE_NAME = 'online_test'