Remove chartjs and debug-toolbar

This commit is contained in:
alazo 2017-11-02 15:03:22 +01:00
parent 511f21eb4d
commit 5a23a7a47d
3 changed files with 2 additions and 21 deletions

View file

@ -137,7 +137,7 @@ def print_periode_formation(request):
def get_context(context): def get_context(context):
""" """
Retrive periods Retrive periods
""" """
liste = Module.objects.exclude(periode_presentiel=0) liste = Module.objects.exclude(periode_presentiel=0)
# context['tot'] = liste.aggregate(Sum(F('periode_presentiel'))) # context['tot'] = liste.aggregate(Sum(F('periode_presentiel')))

View file

@ -25,7 +25,7 @@ print(BASE_DIR)
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
ALLOWED_HOSTS = ['eds.webzos.net', 'localhost', '127.0.0.1'] ALLOWED_HOSTS = ['eds.webzos.net', 'eds.webzos.ch', 'localhost', '127.0.0.1']
# Application definition # Application definition
@ -37,8 +37,6 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'debug_toolbar',
'chartjs',
'tinymce', 'tinymce',
'cms', 'cms',
] ]
@ -52,7 +50,6 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
] ]
ROOT_URLCONF = 'common.urls' ROOT_URLCONF = 'common.urls'
@ -94,22 +91,6 @@ AUTH_PASSWORD_VALIDATORS = [
] ]
DEBUG_TOOLBAR_PANELS = [
'debug_toolbar.panels.versions.VersionsPanel',
'debug_toolbar.panels.timer.TimerPanel',
'debug_toolbar.panels.settings.SettingsPanel',
'debug_toolbar.panels.headers.HeadersPanel',
'debug_toolbar.panels.request.RequestPanel',
'debug_toolbar.panels.sql.SQLPanel',
'debug_toolbar.panels.staticfiles.StaticFilesPanel',
'debug_toolbar.panels.templates.TemplatesPanel',
'debug_toolbar.panels.cache.CachePanel',
'debug_toolbar.panels.signals.SignalsPanel',
'debug_toolbar.panels.logging.LoggingPanel',
'debug_toolbar.panels.redirects.RedirectsPanel',
]
# Internationalization # Internationalization
# https://docs.djangoproject.com/en/1.10/topics/i18n/ # https://docs.djangoproject.com/en/1.10/topics/i18n/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB