From 556192c597b0b5e9742170a50fe440855d4424b4 Mon Sep 17 00:00:00 2001 From: Hendrik Huyskens Date: Tue, 5 Sep 2023 13:21:09 +0200 Subject: [PATCH] Add dashboard app url --- config/urls.py | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/config/urls.py b/config/urls.py index 494c66b..e8a2db0 100644 --- a/config/urls.py +++ b/config/urls.py @@ -3,34 +3,12 @@ from django.contrib import admin from django.urls import include, path from django.views import defaults as default_views -from django.views.generic import TemplateView -from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView -from rest_framework.authtoken.views import obtain_auth_token urlpatterns = [ - path("", TemplateView.as_view(template_name="pages/home.html"), name="home"), - path("about/", TemplateView.as_view(template_name="pages/about.html"), name="about"), - # Django Admin, use {% url 'admin:index' %} + path("", include("django_comparison_dashboard.urls")), path(settings.ADMIN_URL, admin.site.urls), - # User management - path("users/", include("sedos_dashboard.users.urls", namespace="users")), - path("accounts/", include("allauth.urls")), - # Your stuff: custom urls includes go here ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) -# API URLS -urlpatterns += [ - # API base url - path("api/", include("config.api_router")), - # DRF auth token - path("auth-token/", obtain_auth_token), - path("api/schema/", SpectacularAPIView.as_view(), name="api-schema"), - path( - "api/docs/", - SpectacularSwaggerView.as_view(url_name="api-schema"), - name="api-docs", - ), -] if settings.DEBUG: # This allows the error pages to be debugged during development, just visit