@@ -0,0 +1,26 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
from django.contrib.auth import views as auth_views
|
||||
from django.contrib import admin
|
||||
from django.urls import include, path
|
||||
|
||||
from apps.core.views import SecurityAwareLoginView
|
||||
|
||||
urlpatterns = [
|
||||
path("admin/", admin.site.urls),
|
||||
path(
|
||||
"login/",
|
||||
SecurityAwareLoginView.as_view(),
|
||||
name="login",
|
||||
),
|
||||
path("logout/", auth_views.LogoutView.as_view(), name="logout"),
|
||||
path("", include(("apps.core.urls", "dashboard"), namespace="dashboard")),
|
||||
path("jobs/", include(("apps.jobs.urls", "jobs"), namespace="jobs")),
|
||||
path("profiles/", include(("apps.profiles.urls", "profiles"), namespace="profiles")),
|
||||
path("sources/", include(("apps.sources.urls", "sources"), namespace="sources")),
|
||||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
Reference in New Issue
Block a user