-
Notifications
You must be signed in to change notification settings - Fork 220
/
Copy pathurls.py
82 lines (76 loc) · 3.12 KB
/
urls.py
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from django.contrib.auth import views as auth_views
from django_school_management.institute.models import InstituteProfile
from django_school_management.accounts.views import dashboard
admin.site.site_header = 'Django Administration'
admin.site.site_title = 'Django Site Admin'
admin.site.index_title = 'Django Administration'
DJANGO_ADMIN_URL = settings.DJANGO_ADMIN_URL + '/'
urlpatterns = [
# admin_honeypot doesn't support Django 4
# path('admin/', include('admin_honeypot.urls', namespace='admin_honeypot')),
path(DJANGO_ADMIN_URL, admin.site.urls),
path('', include('django_school_management.pages.urls')),
path('api-auth/', include('rest_framework.urls')),
path('dashboard/', dashboard, name='index_view'),
path('accounts/', include('allauth.urls')),
path('blog/', include('django_school_management.articles.urls')),
path('ckeditor/', include('ckeditor_uploader.urls')),
path('account/', include('django_school_management.accounts.urls')),
path('academics/', include('django_school_management.academics.urls')),
path('notices/', include('django_school_management.notices.site_urls')),
path('notices/dashboard/', include('django_school_management.notices.dashboard_urls')),
path('students/', include('django_school_management.students.urls')),
path('tinymce/', include('tinymce.urls')),
path('teachers/', include('django_school_management.teachers.urls')),
path('result/', include('django_school_management.result.urls')),
path('institute/', include('django_school_management.institute.urls')),
path(
'password-reset/',
auth_views.PasswordResetView.as_view(
template_name='account/password/password_reset.html'
),
name="password_reset",
),
path(
'password_reset/done/',
auth_views.PasswordResetDoneView.as_view(
template_name='account/password/password_reset_done.html'
),
name="password_reset_done",
),
path(
'password-reset-confirm/<uidb64>/<token>/',
auth_views.PasswordResetConfirmView.as_view(
template_name='account/password/password_reset_confirm.html'
),
name='password_reset_confirm',
),
path(
'password-reset-complete/',
auth_views.PasswordResetCompleteView.as_view(
template_name='account/password/password-reset-complete.html'
),
name='password_reset_complete'
),
path('dashboard/payments/', include('django_school_management.payments.urls')),
# API URLS
path('api/', include('django_school_management.articles.api.routes')),
path('upload/', include('django_file_form.urls')),
]
urlpatterns += static(
settings.MEDIA_URL,
document_root=settings.MEDIA_ROOT
)
urlpatterns += static(
settings.STATIC_URL,
document_root=settings.STATIC_ROOT
)
if "debug_toolbar" in settings.INSTALLED_APPS:
import debug_toolbar
urlpatterns = [
path("__debug__/", include(debug_toolbar.urls))
] + urlpatterns