ancien_messagerie dans l'interface d'admin
[ongolaboy.git] / projets_django / bacgl_django / bacgl_django / settings.py
CommitLineData
adc90da7
O
1import conf
2
3# Django settings for bacgl_django project.
4
5DEBUG = True
6TEMPLATE_DEBUG = DEBUG
7
8ADMINS = (
9 # ('Your Name', 'your_email@example.com'),
10)
11
12MANAGERS = ADMINS
13
14DATABASES = {
15 'default': {
16 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
17 'NAME': conf.DB, # Or path to database file if using sqlite3.
18 'USER': conf.USER, # Not used with sqlite3.
19 'PASSWORD': conf.PASSWORD, # Not used with sqlite3.
20 'HOST': conf.HOST, # Set to empty string for localhost. Not used with sqlite3.
21 'PORT': '', # Set to empty string for default. Not used with sqlite3.
cdf15ebb
O
22 },
23 'ancienneBD': {
24 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
25 'NAME': conf.DB0, # Or path to database file if using sqlite3.
26 'USER': conf.USER0, # Not used with sqlite3.
27 'PASSWORD': conf.PASSWORD0, # Not used with sqlite3.
28 'HOST': conf.HOST0, # Set to empty string for localhost. Not used with sqlite3.
29 'PORT': '', # Set to empty string for default. Not used with sqlite3.
adc90da7
O
30 }
31}
32
33# Hosts/domain names that are valid for this site; required if DEBUG is False
34# See https://docs.djangoproject.com/en//ref/settings/#allowed-hosts
35ALLOWED_HOSTS = []
36
37# Local time zone for this installation. Choices can be found here:
38# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
39# although not all choices may be available on all operating systems.
40# In a Windows environment this must be set to your system time zone.
41TIME_ZONE = 'Africa/Douala'
42
43# Language code for this installation. All choices can be found here:
44# http://www.i18nguy.com/unicode/language-identifiers.html
45LANGUAGE_CODE = 'fr-fr'
46
47SITE_ID = 1
48
49# If you set this to False, Django will make some optimizations so as not
50# to load the internationalization machinery.
51USE_I18N = True
52
53# If you set this to False, Django will not format dates, numbers and
54# calendars according to the current locale.
55USE_L10N = True
56
57# If you set this to False, Django will not use timezone-aware datetimes.
58USE_TZ = True
59
60# Absolute filesystem path to the directory that will hold user-uploaded files.
61# Example: "/home/media/media.lawrence.com/media/"
62MEDIA_ROOT = ''
63
64# URL that handles the media served from MEDIA_ROOT. Make sure to use a
65# trailing slash.
66# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
67MEDIA_URL = ''
68
69# Absolute path to the directory static files should be collected to.
70# Don't put anything in this directory yourself; store your static files
71# in apps' "static/" subdirectories and in STATICFILES_DIRS.
72# Example: "/home/media/media.lawrence.com/static/"
73STATIC_ROOT = ''
74
75# URL prefix for static files.
76# Example: "http://media.lawrence.com/static/"
77STATIC_URL = '/static/'
78
79# Additional locations of static files
80STATICFILES_DIRS = (
81 # Put strings here, like "/home/html/static" or "C:/www/django/static".
82 # Always use forward slashes, even on Windows.
83 # Don't forget to use absolute paths, not relative paths.
84)
85
86# List of finder classes that know how to find static files in
87# various locations.
88STATICFILES_FINDERS = (
89 'django.contrib.staticfiles.finders.FileSystemFinder',
90 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
91# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
92)
93
94# Make this unique, and don't share it with anybody.
95SECRET_KEY = '^)vh8pdplh8d8-mk%dt$j-ta%fo_ra^b5gb(u_wlkd4y1&5opz'
96
97# List of callables that know how to import templates from various sources.
98TEMPLATE_LOADERS = (
99 'django.template.loaders.filesystem.Loader',
100 'django.template.loaders.app_directories.Loader',
101# 'django.template.loaders.eggs.Loader',
102)
103
104MIDDLEWARE_CLASSES = (
105 'django.middleware.common.CommonMiddleware',
106 'django.contrib.sessions.middleware.SessionMiddleware',
107 'django.middleware.csrf.CsrfViewMiddleware',
108 'django.contrib.auth.middleware.AuthenticationMiddleware',
109 'django.contrib.messages.middleware.MessageMiddleware',
110 # Uncomment the next line for simple clickjacking protection:
111 # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
112)
113
114ROOT_URLCONF = 'bacgl_django.urls'
115
116# Python dotted path to the WSGI application used by Django's runserver.
117WSGI_APPLICATION = 'bacgl_django.wsgi.application'
118
119TEMPLATE_DIRS = (
120 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
121 # Always use forward slashes, even on Windows.
122 # Don't forget to use absolute paths, not relative paths.
123)
124
125INSTALLED_APPS = (
126 'django.contrib.auth',
127 'django.contrib.contenttypes',
128 'django.contrib.sessions',
9554f767 129 #'django.contrib.sites',
adc90da7
O
130 'django.contrib.messages',
131 'django.contrib.staticfiles',
9554f767 132 'south',
cdf15ebb 133 'ancien_messagerie',
adc90da7 134 # Uncomment the next line to enable the admin:
48daa321 135 'django.contrib.admin',
adc90da7
O
136 # Uncomment the next line to enable admin documentation:
137 # 'django.contrib.admindocs',
138)
139
140# A sample logging configuration. The only tangible logging
141# performed by this configuration is to send an email to
142# the site admins on every HTTP 500 error when DEBUG=False.
143# See http://docs.djangoproject.com/en/dev/topics/logging for
144# more details on how to customize your logging configuration.
145LOGGING = {
146 'version': 1,
147 'disable_existing_loggers': False,
148 'filters': {
149 'require_debug_false': {
150 '()': 'django.utils.log.RequireDebugFalse'
151 }
152 },
153 'handlers': {
154 'mail_admins': {
155 'level': 'ERROR',
156 'filters': ['require_debug_false'],
157 'class': 'django.utils.log.AdminEmailHandler'
158 }
159 },
160 'loggers': {
161 'django.request': {
162 'handlers': ['mail_admins'],
163 'level': 'ERROR',
164 'propagate': True,
165 },
166 }
167}