Remove context processor

This commit is contained in:
Ludovic Stephan 2020-08-28 18:18:54 +02:00 committed by Martin Pépin
parent e7cc705350
commit d3384dc5fc
No known key found for this signature in database
GPG key ID: E7520278B1774448
4 changed files with 8 additions and 17 deletions

View file

@ -2,10 +2,8 @@
Django development settings for the cof project.
The settings that are not listed here are imported from .common
"""
import os
from .common import * # NOQA
from .common import BASE_DIR, INSTALLED_APPS, TEMPLATES
from .common import INSTALLED_APPS
# ---
# BDS-only Django settings
@ -20,10 +18,6 @@ STATIC_URL = "/gestion2/static/"
MEDIA_ROOT = "/srv/bds.ens.fr/gestion2/media"
MEDIA_URL = "/gestion2/media/"
TEMPLATES[0]["OPTIONS"]["context_processors"] += [
"bds.context_processors.member_count",
]
# ---
# Auth-related stuff

View file

@ -3,7 +3,7 @@ import os
from . import bds_prod
from .cof_prod import * # NOQA
from .cof_prod import BASE_DIR, INSTALLED_APPS, MIDDLEWARE, TEMPLATES, TESTING
from .cof_prod import BASE_DIR, INSTALLED_APPS, MIDDLEWARE, TESTING
# ---
# Merge COF and BDS configs
@ -13,10 +13,6 @@ for app in bds_prod.INSTALLED_APPS:
if app not in INSTALLED_APPS:
INSTALLED_APPS.append(app)
TEMPLATES[0]["OPTIONS"]["context_processors"] += [
"bds.context_processors.member_count",
]
# ---
# Tweaks for debug/local development
# ---