.
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
from django.urls import path, include
|
||||
|
||||
from atlas.models import Condition
|
||||
from . import views
|
||||
|
||||
app_name = "atlas"
|
||||
@@ -81,4 +83,9 @@ urlpatterns = [
|
||||
views.SeriesFindingDelete.as_view(),
|
||||
name="delete_finding",
|
||||
),
|
||||
path(
|
||||
"condition-autocomplete",
|
||||
views.ConditionAutocomplete.as_view(model=Condition, create_field='structure'),
|
||||
name="condition-autocomplete",
|
||||
),
|
||||
]
|
||||
|
||||
+32
-21
@@ -1,6 +1,5 @@
|
||||
from django.urls import path, include
|
||||
|
||||
from atlas.models import Condition
|
||||
from . import views
|
||||
from django.views.decorators.cache import cache_page
|
||||
|
||||
@@ -11,26 +10,44 @@ urlpatterns = [
|
||||
path("", views.SbasExamViews.index, name="index"),
|
||||
path("question/", views.QuestionView.as_view(), name="question_view"),
|
||||
path("question/<int:pk>/", views.question_detail, name="question_detail"),
|
||||
#path("question/create/", views.QuestionCreate.as_view(), name="anatomy_question_create"),
|
||||
#path("question/<int:pk>/update", views.QuestionUpdate.as_view(), name="anatomy_question_update"),
|
||||
#path("exam/<int:pk>/<int:sk>/mark", views.mark, name="mark"),
|
||||
#path("exam/<int:pk>/mark", views.mark_overview, name="mark_overview"),
|
||||
# path("question/create/", views.QuestionCreate.as_view(), name="anatomy_question_create"),
|
||||
# path("question/<int:pk>/update", views.QuestionUpdate.as_view(), name="anatomy_question_update"),
|
||||
# path("exam/<int:pk>/<int:sk>/mark", views.mark, name="mark"),
|
||||
# path("exam/<int:pk>/mark", views.mark_overview, name="mark_overview"),
|
||||
path("exam/<int:pk>/<int:sk>/<str:cid>/take", views.exam_take, name="exam_take"),
|
||||
path("exam/<int:pk>/start", views.exam_start, name="exam_start"),
|
||||
path("exam/<int:pk>/<str:cid>/finish", views.exam_finish, name="exam_finish"),
|
||||
path("exam/<int:pk>/", views.SbasExamViews.exam_overview, name="exam_overview"),
|
||||
path("exam/<int:pk>/scores", cache_page(60 * 1)(views.exam_scores_cid),
|
||||
name="exam_scores_cid"),
|
||||
path("exam/<int:pk>/scores/<int:sk>/", views.exam_scores_cid_user,
|
||||
name="exam_scores_cid_user"),
|
||||
path("exam/<int:pk>/toggle_active", views.SbasExamViews.exam_toggle_active, name="exam_toggle_active"),
|
||||
path("exam/<int:pk>/toggle_results_published", views.SbasExamViews.exam_toggle_results_published, name="exam_toggle_results_published"),
|
||||
#path("exam/submit", views.PhysicsExamViews.postExamAnswers, name="exam_answers_submit"),
|
||||
path(
|
||||
"exam/<int:pk>/scores",
|
||||
cache_page(60 * 1)(views.exam_scores_cid),
|
||||
name="exam_scores_cid",
|
||||
),
|
||||
path(
|
||||
"exam/<int:pk>/scores/<int:sk>/",
|
||||
views.exam_scores_cid_user,
|
||||
name="exam_scores_cid_user",
|
||||
),
|
||||
path(
|
||||
"exam/<int:pk>/toggle_active",
|
||||
views.SbasExamViews.exam_toggle_active,
|
||||
name="exam_toggle_active",
|
||||
),
|
||||
path(
|
||||
"exam/<int:pk>/toggle_results_published",
|
||||
views.SbasExamViews.exam_toggle_results_published,
|
||||
name="exam_toggle_results_published",
|
||||
),
|
||||
# path("exam/submit", views.PhysicsExamViews.postExamAnswers, name="exam_answers_submit"),
|
||||
path("exam/", views.SbasExamViews.exam_list, name="exam_list"),
|
||||
path("exam/available", views.active_exams, name="active_exams"),
|
||||
#path("exam/json/<int:pk>", views.exam_json, name="exam_json"),
|
||||
#path("exam/json/<int:pk>/recreate", views.exam_json_recreate, name="exam_json_recreate"),
|
||||
path("user_answers/", views.UserAnswerTableView.as_view(), name="user_answer_table_view"),
|
||||
# path("exam/json/<int:pk>", views.exam_json, name="exam_json"),
|
||||
# path("exam/json/<int:pk>/recreate", views.exam_json_recreate, name="exam_json_recreate"),
|
||||
path(
|
||||
"user_answers/",
|
||||
views.UserAnswerTableView.as_view(),
|
||||
name="user_answer_table_view",
|
||||
),
|
||||
path(
|
||||
"user_answers/<int:pk>", views.UserAnswerView.as_view(), name="user_answer_view"
|
||||
),
|
||||
@@ -44,10 +61,4 @@ urlpatterns = [
|
||||
views.GenericViews.user_answer_delete_multiple,
|
||||
name="user_answer_delete_multiple",
|
||||
),
|
||||
path(
|
||||
"condition-autocomplete",
|
||||
views.ConditionAutocomplete.as_view(model=Condition, create_field='structure'),
|
||||
name="condition-autocomplete",
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user