24 lines
919 B
Python
24 lines
919 B
Python
"""URL configuration for the project."""
|
|
|
|
from django.conf import settings
|
|
from django.contrib import admin
|
|
from django.contrib.auth import views as auth_views
|
|
from django.urls import include, path, re_path
|
|
from django.views.static import serve
|
|
|
|
from fireworks_detect.views import dashboard_view
|
|
from hello.views import hello_view
|
|
|
|
urlpatterns = [
|
|
path("admin/", admin.site.urls),
|
|
path("login/", auth_views.LoginView.as_view(template_name="members/login.html"), name="login"),
|
|
path("classifications/", include("fireworks_detect.classification_urls")),
|
|
path("settings/", include("members.settings_urls")),
|
|
path("fireworks/", include("fireworks_detect.urls")),
|
|
path("members/", include("members.urls")),
|
|
path("old/", hello_view, name="old_home"),
|
|
path("", dashboard_view, name="hello"),
|
|
]
|
|
|
|
urlpatterns += [re_path(r"^static/(?P<path>.*)$", serve, {"document_root": settings.STATIC_ROOT})]
|