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