Commit a65aa50d authored by Daniel STAN's avatar Daniel STAN

range les templates par apps

parent 528d263d
......@@ -149,12 +149,6 @@ if LOCATION != 'o2':
else: # Ne marchera que sur o2
SECRET_KEY = secrets.get('django_secret_key')
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
# 'django.middleware.transaction.TransactionMiddleware', Est retiré dans Django 1.8
......@@ -192,12 +186,9 @@ TEMPLATE_CONTEXT_PROCESSORS += (
ROOT_URLCONF = 'intranet.urls'
TEMPLATE_DIRS = (
MEDIA_ROOT + 'templates/',
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
)
# Dossiers où trouver des templates, hardcodé (chaque apps qui a un
# dossier templates se rajoute en plus automatiquement)
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]
LOGIN_URL = "/login"
LOGIN_REDIRECT_URL = "/"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment