| 1 |
9791e4f3
|
Marc Nicolas
|
"""
|
| 2 |
|
|
jango settings for idoc project.
|
| 3 |
|
|
|
| 4 |
|
|
For more information on this file, see
|
| 5 |
|
|
https://docs.djangoproject.com/en/1.7/topics/settings/
|
| 6 |
|
|
|
| 7 |
|
|
For the full list of settings and their values, see
|
| 8 |
|
|
https://docs.djangoproject.com/en/1.7/ref/settings/
|
| 9 |
|
|
"""
|
| 10 |
|
|
|
| 11 |
|
|
|
| 12 |
|
|
import os
|
| 13 |
|
|
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
| 14 |
|
|
|
| 15 |
|
|
|
| 16 |
|
|
|
| 17 |
|
|
|
| 18 |
|
|
|
| 19 |
|
|
|
| 20 |
|
|
SECRET_KEY = 'n@9ep$62phh2*dfgkwy1g6dc9tzcp%@+vz24&f@1k*kldbu(i3'
|
| 21 |
|
|
|
| 22 |
|
|
|
| 23 |
|
|
DEBUG = True
|
| 24 |
|
|
|
| 25 |
|
|
TEMPLATE_DEBUG = True
|
| 26 |
|
|
|
| 27 |
|
|
ALLOWED_HOSTS = []
|
| 28 |
|
|
|
| 29 |
|
|
|
| 30 |
|
|
|
| 31 |
|
|
|
| 32 |
|
|
INSTALLED_APPS = (
|
| 33 |
|
|
'django.contrib.admin',
|
| 34 |
|
|
'django.contrib.auth',
|
| 35 |
|
|
'django.contrib.contenttypes',
|
| 36 |
|
|
'django.contrib.sessions',
|
| 37 |
|
|
'django.contrib.messages',
|
| 38 |
|
|
'django.contrib.staticfiles',
|
| 39 |
|
|
'webstat',
|
| 40 |
|
|
'datetimewidget',
|
| 41 |
|
|
)
|
| 42 |
|
|
|
| 43 |
|
|
MIDDLEWARE_CLASSES = (
|
| 44 |
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
| 45 |
|
|
'django.middleware.common.CommonMiddleware',
|
| 46 |
|
|
'django.middleware.csrf.CsrfViewMiddleware',
|
| 47 |
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
| 48 |
|
|
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
|
| 49 |
|
|
'django.contrib.messages.middleware.MessageMiddleware',
|
| 50 |
|
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
| 51 |
|
|
'django.middleware.locale.LocaleMiddleware',
|
| 52 |
|
|
)
|
| 53 |
|
|
|
| 54 |
|
|
ROOT_URLCONF = 'idoc.urls'
|
| 55 |
|
|
|
| 56 |
|
|
WSGI_APPLICATION = 'idoc.wsgi.application'
|
| 57 |
|
|
|
| 58 |
|
|
|
| 59 |
|
|
|
| 60 |
|
|
|
| 61 |
|
|
|
| 62 |
|
|
DATABASES = {
|
| 63 |
|
|
'default': {
|
| 64 |
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
| 65 |
|
|
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
| 66 |
|
|
}
|
| 67 |
|
|
}
|
| 68 |
|
|
'''
|
| 69 |
|
|
DATABASES = {
|
| 70 |
|
|
'default': {
|
| 71 |
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
| 72 |
|
|
'NAME': 'webstat_DB_TEST',
|
| 73 |
|
|
'USER': 'postgres',
|
| 74 |
|
|
'PASSWORD': '',
|
| 75 |
|
|
'HOST': 'localhost',
|
| 76 |
|
|
'PORT': 5432
|
| 77 |
|
|
}
|
| 78 |
|
|
}
|
| 79 |
|
|
'''
|
| 80 |
|
|
|
| 81 |
|
|
|
| 82 |
|
|
|
| 83 |
|
|
|
| 84 |
|
|
LANGUAGE_CODE = 'fr'
|
| 85 |
|
|
|
| 86 |
|
|
TIME_ZONE = 'UTC'
|
| 87 |
|
|
|
| 88 |
|
|
USE_I18N = True
|
| 89 |
|
|
|
| 90 |
|
|
USE_L10N = True
|
| 91 |
|
|
|
| 92 |
|
|
USE_TZ = True
|
| 93 |
|
|
|
| 94 |
|
|
|
| 95 |
|
|
|
| 96 |
|
|
|
| 97 |
|
|
|
| 98 |
|
|
STATIC_URL = '/static/'
|
| 99 |
|
|
|
| 100 |
|
|
APPEND_SLASH = True
|
| 101 |
|
|
|
| 102 |
|
|
STATICFILES_DIRS = (
|
| 103 |
|
|
"/home/marc/MyDev/sitools-idoc/webstatDev/idoc_Maison/static/",
|
| 104 |
|
|
)
|
| 105 |
|
|
TEMPLATE_DIRS = (
|
| 106 |
|
|
"/home/marc/MyDev/sitools-idoc/webstatDev/idoc_Maison/templates/",
|
| 107 |
|
|
)
|