Skip to content
Snippets Groups Projects
Commit 5661f4dd authored by Nadja Geisler's avatar Nadja Geisler :sunny:
Browse files

Merge branch 'meta-debug-toolbar' into 'master'

Use django debug toolbar

See merge request !81
parents 59f9c1bf 2930789a
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'debug_toolbar',
'bootstrap4',
'fontawesome_5',
'timezone_field',
......@@ -53,6 +54,7 @@ INSTALLED_APPS = [
]
MIDDLEWARE = [
'debug_toolbar.middleware.DebugToolbarMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
......@@ -132,6 +134,8 @@ LANGUAGES = [
('en', _('English')),
]
INTERNAL_IPS = ['127.0.0.1', '::1']
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.2/howto/static-files/
......
......@@ -16,6 +16,7 @@ Including another URLconf
from django.apps import apps
from django.contrib import admin
from django.urls import path, include
import debug_toolbar
urlpatterns = [
path('admin/', admin.site.urls),
......@@ -23,6 +24,7 @@ urlpatterns = [
path('accounts/', include('registration.backends.simple.urls')),
path('', include('AKModel.urls', namespace='model')),
path('i18n/', include('django.conf.urls.i18n')),
path('__debug__/', include(debug_toolbar.urls)),
]
# Load URLs dynamically (only if components are active)
......
......@@ -6,4 +6,5 @@ django-timezone-field==4.0
djangorestframework==3.11.0
django-simple-history==2.10.0
django-registration-redux==2.8
django-debug-toolbar==3.2
mysqlclient==1.4.6 # for production deployment
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment