]> git.parisson.com Git - telemeta.git/commitdiff
Remove django-google-tools: remove SITE_ID and remaning code in template/base.html
authorThomas Fillon <thomas@parisson.com>
Wed, 25 Jan 2017 07:54:54 +0000 (08:54 +0100)
committerThomas Fillon <thomas@parisson.com>
Wed, 25 Jan 2017 07:54:54 +0000 (08:54 +0100)
app/settings.py
telemeta/templates/telemeta/base.html

index df6ad18faea4c74b8d693f470292cdcc673de882..be13e3a6101149d33ce7f7272067f340ed2e6e9e 100644 (file)
@@ -61,8 +61,6 @@ LANGUAGES = [ ('fr', 'French'),
               ('es', 'Spanish'),
 ]
 
-SITE_ID = 1
-
 # If you set this to False, Django will make some optimizations so as not
 # to load the internationalization machinery.
 USE_I18N = True
@@ -123,14 +121,13 @@ TEMPLATE_LOADERS = (
 
 MIDDLEWARE_CLASSES = (
     # Manage Django URLs for AngularJS with django-angular
-    'djng.middleware.AngularUrlMiddleware',
+    'debug_toolbar.middleware.DebugToolbarMiddleware',
     'django.middleware.common.CommonMiddleware',
     'django.contrib.sessions.middleware.SessionMiddleware',
     'django.middleware.csrf.CsrfViewMiddleware',
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'django.contrib.messages.middleware.MessageMiddleware',
     'django.middleware.locale.LocaleMiddleware',
-    'debug_toolbar.middleware.DebugToolbarMiddleware',
     # 'pagination.middleware.PaginationMiddleware',
 )
 
index a301db6a9c11cbd8adbf7f13f414c880b0b664ce..1eca9627dd4b65ba691bdea02a33fd53597669f9 100644 (file)
@@ -4,8 +4,6 @@
 {% load bootstrap3 %}
 {% settings_value 'INSTALLED_APPS' as INSTALLED_APPS %}
 {% settings_value 'DEBUG' as DEBUG %}
-{% if 'googletools' in INSTALLED_APPS %}
-    {% load googletools %}
 {% endif %}
 
 {% get_current_language as LANGUAGE_CODE %}