add dashboard to home

This commit is contained in:
Joren de Graaf
2026-10-01 17:29:29 +02:00
parent 66db97b6f7
commit b676f35f0a
24 changed files with 214 additions and 82 deletions
+14 -24
View File
@@ -1,33 +1,23 @@
"""
URL configuration for myproject project.
"""URL configuration for the project."""
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/6.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.conf import settings
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.conf import settings
from django.urls import path, include, re_path
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('', include('hello.urls')),
path('fireworks/', include('fireworks_detect.urls')),
path('members/', include('members.urls'))
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})]