.
This commit is contained in:
+1
-1
@@ -373,7 +373,7 @@ class ExamViews(View, LoginRequiredMixin):
|
||||
raise Http404("No available exam")
|
||||
|
||||
|
||||
exam_json_cache = cache.get("{}_exam_json_{}".format(self.app_name, pk))
|
||||
#exam_json_cache = cache.get("{}_exam_json_{}".format(self.app_name, pk))
|
||||
|
||||
path= "{0}{1}/exam/{2}.json".format(settings.MEDIA_ROOT, self.app_name, pk)
|
||||
url= "{0}{1}/exam/{2}.json".format(settings.MEDIA_URL, self.app_name, pk)
|
||||
|
||||
+2
-2
@@ -994,8 +994,8 @@ def question_json(request, pk):
|
||||
#if not exam.active:
|
||||
# raise Http404("No available exam")
|
||||
|
||||
path= "{0}longs/questions/{1}.json".format(settings.MEDIA_ROOT, question_id)
|
||||
url= "{0}{1}/exam/{2}.json".format(settings.MEDIA_URL, self.app_name, pk)
|
||||
path= "{0}longs/questions/{1}.json".format(settings.MEDIA_ROOT, pk)
|
||||
url= "{0}longs/questions/{1}.json".format(settings.MEDIA_URL, pk)
|
||||
|
||||
if os.path.isfile(path) and not question.recreate_json:
|
||||
return redirect(url)
|
||||
|
||||
Reference in New Issue
Block a user