Esempio n. 1
0
         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",
    ),
    path("results/", LeaderboardRedirect.as_view()),
    path("leaderboard/", LeaderboardRedirect.as_view()),
]
Esempio n. 2
0
        "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,
        name="submission-upload-ajax",
    ),
    path(
        "submissions/<uuid:pk>/",
        SubmissionDetail.as_view(),
        name="submission-detail",
    ),
    path("jobs/", JobList.as_view(), name="job-list"),
    path("jobs/create/", JobCreate.as_view(), name="job-create"),
    path("jobs/<uuid:pk>/", JobDetail.as_view(), name="job-detail"),
    path("results/", ResultList.as_view(), name="result-list"),
    path("results/<uuid:pk>/", ResultDetail.as_view(), name="result-detail"),
    path(
        "results/<uuid:pk>/update/",
        ResultUpdate.as_view(),
        name="result-update",
    ),
]