Ajoute la debug_toolbar
This commit is contained in:
parent
43026cecd2
commit
764865c9d8
1 changed files with 10 additions and 7 deletions
|
@ -21,13 +21,16 @@ from fiches.views import BirthdayView, HomeView
|
|||
import django_cas_ng.views as cas_views
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path('fiche/', include('fiches.urls')),
|
||||
path('', HomeView.as_view(), name='home'),
|
||||
path('birthday', BirthdayView.as_view(), name='birthday'),
|
||||
path('accounts/login/', cas_views.LoginView.as_view(), name='cas_ng_login'),
|
||||
path('logout', cas_views.LogoutView.as_view(), name='cas_ng_logout'),
|
||||
path("admin/", admin.site.urls),
|
||||
path("fiche/", include("fiches.urls")),
|
||||
path("", HomeView.as_view(), name="home"),
|
||||
path("birthday", BirthdayView.as_view(), name="birthday"),
|
||||
path("accounts/login/", cas_views.LoginView.as_view(), name="cas_ng_login"),
|
||||
path("logout", cas_views.LogoutView.as_view(), name="cas_ng_logout"),
|
||||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
if settings.DEBUG and "debug_toolbar" in settings.INSTALLED_APPS:
|
||||
import debug_toolbar
|
||||
|
||||
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
urlpatterns += [path("__debug__/", include(debug_toolbar.urls))]
|
||||
|
|
Loading…
Reference in a new issue