Files
VacatureRadar/config/urls.py
T
Jens 029df89265
deploy / deploy (push) Canceled after 0s
feat: ship premium IT-focused vacancy radar
2026-07-22 15:16:15 +02:00

34 lines
1.2 KiB
Python

from __future__ import annotations
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.templatetags.static import static as static_url
from django.urls import include, path
from django.views.generic import RedirectView
from apps.core.views import SecurityAwareLoginView
urlpatterns = [
path(
"favicon.ico",
RedirectView.as_view(url=static_url("favicon.svg"), permanent=True),
name="favicon",
),
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)