Commit 11598cf2 authored by Alexander Eyl's avatar Alexander Eyl

Fix picture creation to correspond subtype-model name convention.

parent 01c758af
......@@ -399,7 +399,7 @@ def check_code_view(request, format=None):
example = Example.objects.all().filter(id=exercise_step_id).first()
if subtype == "picture":
if subtype == "picture_create":
output,passed,image_string = koja_java.compile_execute_code_picture(folder_name,code,"PictureCreate",None,example.assert_active)
......@@ -433,7 +433,7 @@ def check_code_view(request, format=None):
subexercise = SubExercise.objects.all().filter(id=exercise_step_id).first()
if subtype == "picture":
if subtype == "picture_create":
output,passed,image_string = koja_java.compile_execute_code_picture(folder_name,code,"PictureCreate",None,subexercise.assert_active)
......@@ -534,4 +534,4 @@ urlpatterns = [
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
url(r'^check_code/', check_code_view, name='check_code'),
url(r'^exercise/reset/(?P<exercise_id>[-\w]+)/$', reset_delete_usersteps_view, name='reset_exercise')
]
\ No newline at end of file
]
......@@ -25,7 +25,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'qg$5_4_lbkuep*90)6o+_xmwk(l!ln@q1y@&lt0$$3(6j)$4j*'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False
ALLOWED_HOSTS = ['*']
#ALLOWED_HOSTS = ['0.0.0.0','localhost']
......
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