remove django widget tweaks

add debug_toolbar
This commit is contained in:
Robert Einsle 2018-02-11 10:35:30 +01:00
parent e7dd1aa01a
commit 9923106096
3 changed files with 12 additions and 2 deletions

View File

@ -37,14 +37,15 @@ INSTALLED_APPS = [
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'rest_framework', 'rest_framework',
'rest_framework.authtoken', 'rest_framework.authtoken',
'debug_toolbar',
'crispy_forms', 'crispy_forms',
'widget_tweaks',
'billard', 'billard',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware', 'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
'django.middleware.common.CommonMiddleware', 'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware',
@ -161,6 +162,8 @@ URL_LOCATION_PROCESSOR = 'http://127.0.0.1:8000/billard/process_locationdata'
PRODUCT_INFO = 'CAROM-DEV' PRODUCT_INFO = 'CAROM-DEV'
PRODUCT_VERSION = 'v 0.5.0' PRODUCT_VERSION = 'v 0.5.0'
INTERNAL_IPS = ['127.0.0.1']
try: try:
from local_settings import * from local_settings import *
except ImportError: except ImportError:

View File

@ -13,6 +13,7 @@ Including another URLconf
1. Import the include() function: from django.conf.urls import url, include 1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
""" """
from django.conf import settings
from django.conf.urls import url, include from django.conf.urls import url, include
from django.contrib import admin from django.contrib import admin
from django.contrib.auth import views as auth_views from django.contrib.auth import views as auth_views
@ -27,3 +28,9 @@ urlpatterns = [
url(r'^', include('django.contrib.auth.urls')), url(r'^', include('django.contrib.auth.urls')),
url(r'^$', RedirectView.as_view(url='billard/', permanent=False), name='index') url(r'^$', RedirectView.as_view(url='billard/', permanent=False), name='index')
] ]
if settings.DEBUG:
import debug_toolbar
urlpatterns = [
url(r'^__debug__/', include(debug_toolbar.urls)),
] + urlpatterns

View File

@ -3,4 +3,4 @@ django-crispy-forms==1.7.0
django-extensions>=1.7.0 django-extensions>=1.7.0
djangorestframework>=3.6.0 djangorestframework>=3.6.0
requests>=2.18.0 requests>=2.18.0
django-widget-tweaks==1.4.1 django-debug-toolbar<2.0.0