Coverage for waveqc/urls.py: 75%

6 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-03-26 15:42 +0000

1""" 

2URL configuration for waveqc project. 

3 

4The `urlpatterns` list routes URLs to views. For more information please see: 

5 https://docs.djangoproject.com/en/5.0/topics/http/urls/ 

6Examples: 

7Function views 

8 1. Add an import: from my_app import views 

9 2. Add a URL to urlpatterns: path('', views.home, name='home') 

10Class-based views 

11 1. Add an import: from other_app.views import Home 

12 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') 

13Including another URLconf 

14 1. Import the include() function: from django.urls import include, path 

15 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 

16""" 

17 

18from django.conf import settings 

19from django.contrib import admin 

20from django.urls import include, path 

21 

22urlpatterns = [ 

23 path("admin/", admin.site.urls), 

24 path("", include("quality.urls")), 

25] 

26 

27if settings.DEBUG: 27 ↛ 28line 27 didn't jump to line 28 because the condition on line 27 was never true

28 urlpatterns.append(path("__debug__/", include("debug_toolbar.urls")))