diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2021-09-23 10:34:23 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2021-09-23 10:34:59 +0200 |
commit | 5d461a177ad6b949b462f2f836d7f573060622a9 (patch) | |
tree | 2e4c33aa95e731e2c8d57c0c225fe513650a8056 /manager/urls.py | |
parent | remove last loops for admin interface (diff) | |
download | scout-subs-5d461a177ad6b949b462f2f836d7f573060622a9.tar.gz scout-subs-5d461a177ad6b949b462f2f836d7f573060622a9.zip |
use .count() instead of len(), add debug_toolbar0.4
Diffstat (limited to 'manager/urls.py')
-rw-r--r-- | manager/urls.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/manager/urls.py b/manager/urls.py index a2c0ebf..f3b8008 100644 --- a/manager/urls.py +++ b/manager/urls.py @@ -15,6 +15,7 @@ Including another URLconf """ from django.contrib import admin from django.urls import path, include +from django.conf import settings urlpatterns = [ path('', include('client.urls')), @@ -23,3 +24,7 @@ urlpatterns = [ path('accounts/', include('django.contrib.auth.urls')), path('admin/', admin.site.urls), ] + +if settings.DEBUG: + import debug_toolbar + urlpatterns.append(path('__debug__/', include(debug_toolbar.urls)))
\ No newline at end of file |