예제 #1
0
)

app_name = "challenges"

urlpatterns = [
    path("", ChallengeList.as_view(), name="list"),
    path("my-challenges/", UsersChallengeList.as_view(), name="users-list"),
    path("create/", ChallengeCreate.as_view(), name="create"),
    path("external/", ExternalChallengeList.as_view(), name="external-list"),
    path(
        "external/create/",
        ExternalChallengeCreate.as_view(),
        name="external-create",
    ),
    path(
        "external/<slug:short_name>/update/",
        ExternalChallengeUpdate.as_view(),
        name="external-update",
    ),
    path(
        "external/<slug:short_name>/delete/",
        ExternalChallengeDelete.as_view(),
        name="external-delete",
    ),
    path(
        "<slug:challenge_short_name>/update/",
        ChallengeUpdate.as_view(),
        name="update",
    ),
]
        TemplateView.as_view(
            template_name="robots.txt", content_type="text/plain"
        ),
        name="subdomain_robots_txt",
    ),
    path(
        "evaluation/",
        include("grandchallenge.evaluation.urls", namespace="evaluation"),
    ),
    path("teams/", include("grandchallenge.teams.urls", namespace="teams")),
    path(
        "participants/",
        include("grandchallenge.participants.urls", namespace="participants"),
    ),
    path("admins/", include("grandchallenge.admins.urls", namespace="admins")),
    path(
        "datasets/",
        include("grandchallenge.datasets.urls", namespace="datasets"),
    ),
    path("update/", ChallengeUpdate.as_view(), name="update"),
    path("summernote/", include("django_summernote.urls")),
    path("", include("grandchallenge.pages.urls", namespace="pages")),
]

if settings.DEBUG and settings.ENABLE_DEBUG_TOOLBAR:
    import debug_toolbar

    urlpatterns = [
        path("__debug__/", include(debug_toolbar.urls))
    ] + urlpatterns
예제 #3
0
파일: urls.py 프로젝트: comic/comic-django
     include("grandchallenge.evaluation.urls", namespace="evaluation"),
 ),
 path("teams/", include("grandchallenge.teams.urls", namespace="teams")),
 path(
     "participants/",
     include("grandchallenge.participants.urls", namespace="participants"),
 ),
 path("admins/", include("grandchallenge.admins.urls", namespace="admins")),
 path(
     "uploads/", include("grandchallenge.uploads.urls", namespace="uploads")
 ),
 path(
     "datasets/",
     include("grandchallenge.datasets.urls", namespace="datasets"),
 ),
 path("update/", ChallengeUpdate.as_view(), name="update"),
 path("summernote/", include("django_summernote.urls")),
 #################
 #
 # Legacy apps
 #
 path(
     "files/",
     RedirectView.as_view(pattern_name="uploads:create", permanent=False),
 ),
 #
 # End Legacy
 #
 #################
 # If nothing specific matches, try to resolve the url as project/pagename
 path("", include("grandchallenge.pages.urls", namespace="pages")),