huge updates
This commit is contained in:
1 parent
b5a43ac0ad
commit
6cc74a355f
40 files changed
+6878
-2378
No files matched your search
@@ -29,9 +29,9 @@ from app import auth
|
||||
urlpatterns = [
|
||||
# Application URLs ------------------------------------------------
|
||||
path("app/", include("app.urls")),
|
||||
path("admin/", custom_admin_site.urls),
|
||||
# path("", custom_admin_site.urls, name="admin"),
|
||||
# Root Redirect --------------------------------------------------
|
||||
path("", RedirectView.as_view(url="/app/dashboard/", permanent=False)),
|
||||
# path("", RedirectView.as_view(url="/app/dashboard/", permanent=False)),
|
||||
# Authentication -------------------------------------------------
|
||||
path("login/", auth.custom_login, name="login"),
|
||||
path("logout/", auth_views.LogoutView.as_view(next_page="/login/"), name="logout"),
|
||||
@@ -41,6 +41,7 @@ urlpatterns = [
|
||||
path("firebase-messaging-sw.js", views.serve_firebase_sw),
|
||||
]
|
||||
|
||||
urlpatterns.append(path("", custom_admin_site.urls, name="admin"))
|
||||
# Static and Media Files (Development Only) --------------------------
|
||||
if settings.DEBUG:
|
||||
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||
@@ -52,4 +53,3 @@ handler403 = "app.error_handlers.handler403"
|
||||
handler404 = "app.error_handlers.handler404"
|
||||
handler500 = "app.error_handlers.handler500"
|
||||
handler505 = "app.error_handlers.handler505"
|
||||
|
||||
Reference in new issue
Block a user