3
0
Fork 0
mirror of https://github.com/nanoy42/coope synced 2024-12-28 01:43:47 +00:00
coope/coopeV3/settings.py

131 lines
3.3 KiB
Python
Raw Normal View History

2018-08-30 16:53:00 +00:00
"""
Django settings for coopeV3 project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
2018-12-10 11:37:07 +00:00
from .local_settings import *
2018-08-30 16:53:00 +00:00
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
2018-11-22 21:52:15 +00:00
'django.contrib.admindocs',
2018-08-31 12:46:35 +00:00
'gestion',
'users',
'preferences',
2018-10-05 22:03:02 +00:00
'coopeV3',
'dal',
2018-11-27 08:07:12 +00:00
'dal_select2',
'simple_history',
2019-01-05 23:01:30 +00:00
'django_tex',
2018-08-30 16:53:00 +00:00
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
2018-11-27 08:07:12 +00:00
'simple_history.middleware.HistoryRequestMiddleware',
2018-12-02 15:28:40 +00:00
'django.contrib.admindocs.middleware.XViewMiddleware',
2018-08-30 16:53:00 +00:00
]
ROOT_URLCONF = 'coopeV3.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')],
2018-08-30 16:53:00 +00:00
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
2019-01-05 23:01:30 +00:00
{
'NAME': 'tex',
'BACKEND': 'django_tex.engine.TeXEngine',
'APP_DIRS': True,
'OPTIONS': {
'environment': 'gestion.environment.my_environment',
}
},
2018-08-30 16:53:00 +00:00
]
WSGI_APPLICATION = 'coopeV3.wsgi.application'
# Password validation
# https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
# Internationalization
# https://docs.djangoproject.com/en/2.1/topics/i18n/
2018-08-31 12:46:35 +00:00
LANGUAGE_CODE = 'fr-fr'
2018-08-30 16:53:00 +00:00
2018-08-31 12:46:35 +00:00
TIME_ZONE = 'Europe/Paris'
2018-08-30 16:53:00 +00:00
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.1/howto/static-files/
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'staticfiles')
]
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
2018-12-10 11:37:07 +00:00
LOGIN_URL = '/users/login'
2019-02-18 18:20:09 +00:00
MEDIA_ROOT = 'mediafiles/'
MEDIA_URL = '/media/'