Repository navigation
Expand file tree
/
Copy pathurls.py
More file actions
55 lines (45 loc) · 2.08 KB
/
Copy pathurls.py
File metadata and controls
55 lines (45 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
from django.conf import settings
from django.conf.urls import include
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.urls import path
from ajax_select import urls as ajax_select_urls
# Error pages that close their database connection, see utils/error_handlers.py
handler403 = 'utils.error_handlers.permission_denied'
handler404 = 'utils.error_handlers.page_not_found'
urlpatterns = [
# Our URLS
path('', include('pages.urls', namespace='pages')),
path('competitions/', include('competitions.urls', namespace='competitions')),
path('analytics/', include('analytics.urls', namespace='analytics')),
path('dashboard/', include('dashboard.urls', namespace='dashboard')),
path('datasets/', include('datasets.urls', namespace='datasets')),
path('profiles/', include('profiles.urls', namespace='profiles')),
path('tasks/', include('tasks.urls', namespace='tasks')),
path('queues/', include('queues.urls', namespace="queues")),
path('forums/', include('forums.urls', namespace="forums")),
# Third party
path('api/', include('api.urls')),
path('oauth/', include('oauth2_provider.urls', namespace='oauth2_provider')),
path('su/', include('django_su.urls')),
path('ajax_select/', include(ajax_select_urls)),
# Django built in
# path('accounts/', include('django.contrib.auth.urls')),
path('accounts/', include('profiles.urls_accounts')),
path('settings/', include('profiles.urls_settings')),
path('admin/', admin.site.urls),
path('social/', include('social_django.urls', namespace='social')),
path('oidc/', include('oidc_configurations.urls')),
]
if settings.EXTERNAL_COMPETITIONS_ENABLED:
urlpatterns += [
path('competitions/external/', include('external_competitions.urls')),
]
if settings.DEBUG:
# Static files for local dev, so we don't have to collectstatic and such
urlpatterns += staticfiles_urlpatterns()
# Django debug toolbar
import debug_toolbar
urlpatterns += [
path('__debug__/', include(debug_toolbar.urls)),
]