.
This commit is contained in:
@@ -970,8 +970,11 @@ def question_json(request, pk):
|
||||
path= "{0}longs/questions/{1}.json".format(settings.MEDIA_ROOT, pk)
|
||||
url= "{0}longs/questions/{1}.json".format(settings.MEDIA_URL, pk)
|
||||
|
||||
print("PRE")
|
||||
if os.path.isfile(path) and not question.recreate_json:
|
||||
print("GEN")
|
||||
return redirect(url)
|
||||
print("POST")
|
||||
|
||||
question_json = question.get_question_json()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user