2025-03-12 17:23:58 +01:00
|
|
|
"""
|
2025-03-12 17:33:04 +01:00
|
|
|
URL configuration for teilchensammler project.
|
2025-03-12 17:23:58 +01:00
|
|
|
|
|
|
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
|
|
|
https://docs.djangoproject.com/en/5.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'))
|
|
|
|
"""
|
|
|
|
|
2025-03-14 22:35:42 +01:00
|
|
|
from django.conf import settings
|
2025-03-12 17:23:58 +01:00
|
|
|
from django.contrib import admin
|
2025-03-12 21:17:08 +01:00
|
|
|
from django.urls import include, path
|
2025-03-12 17:23:58 +01:00
|
|
|
|
|
|
|
urlpatterns = [
|
2025-03-15 21:54:37 +01:00
|
|
|
path("", include("collector.urls")),
|
2025-03-12 17:23:58 +01:00
|
|
|
path("admin/", admin.site.urls),
|
2025-03-14 22:35:42 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
if settings.DEBUG:
|
|
|
|
from debug_toolbar.toolbar import debug_toolbar_urls
|
|
|
|
|
|
|
|
urlpatterns += debug_toolbar_urls()
|