Esempio n. 1
0
 path("", EvaluationList.as_view(), name="list"),
 path("<uuid:pk>/", EvaluationDetail.as_view(), name="detail"),
 # UUID should be matched before slugs
 path("<uuid:pk>/update/", EvaluationUpdate.as_view(), name="update"),
 path("<slug>/leaderboard/",
      LeaderboardDetail.as_view(),
      name="leaderboard"),
 path(
     "<slug>/observable/<slug:kind>/",
     ObservableDetail.as_view(),
     name="observable-detail",
 ),
 path("<slug>/update/", PhaseUpdate.as_view(), name="phase-update"),
 path(
     "<slug>/submissions/create/",
     SubmissionCreate.as_view(),
     name="submission-create",
 ),
 path(
     "<slug>/submissions/create-legacy/",
     LegacySubmissionCreate.as_view(),
     name="submission-create-legacy",
 ),
 path("methods/", MethodList.as_view(), name="method-list"),
 path("methods/create/", MethodCreate.as_view(), name="method-create"),
 path("methods/<uuid:pk>/", MethodDetail.as_view(), name="method-detail"),
 path("submissions/", SubmissionList.as_view(), name="submission-list"),
 path(
     "submissions/<uuid:pk>/",
     SubmissionDetail.as_view(),
     name="submission-detail",
Esempio n. 2
0
app_name = "evaluation"

urlpatterns = [
    path("config/", ConfigUpdate.as_view(), name="config-update"),
    path("methods/", MethodList.as_view(), name="method-list"),
    path("methods/create/", MethodCreate.as_view(), name="method-create"),
    path(
        f"methods/create/{method_upload_widget.ajax_target_path}",
        method_upload_widget.handle_ajax,
        name="method-upload-ajax",
    ),
    path("methods/<uuid:pk>/", MethodDetail.as_view(), name="method-detail"),
    path("submissions/", SubmissionList.as_view(), name="submission-list"),
    path(
        "submissions/create/",
        SubmissionCreate.as_view(),
        name="submission-create",
    ),
    path(
        "submissions/create-legacy/",
        LegacySubmissionCreate.as_view(),
        name="submission-create-legacy",
    ),
    path(
        f"submissions/create-legacy/{submission_upload_widget.ajax_target_path}",
        submission_upload_widget.handle_ajax,
        name="submission-upload-legacy-ajax",
    ),
    path(
        f"submissions/create/{submission_upload_widget.ajax_target_path}",
        submission_upload_widget.handle_ajax,