list2form : gestion des erreurs et des petits fichiers (merci cgi.py…)
[progfou.git] / auf_zap / settings.py
CommitLineData
95710ba5
P
1# Django settings for auf_zap project.
2
3import os
4from conf import *
5
6DEBUG = True
7TEMPLATE_DEBUG = DEBUG
8
9ADMINS = (
10 # ('Your Name', 'your_email@domain.com'),
11)
12
13MANAGERS = ADMINS
14
15# Local time zone for this installation. Choices can be found here:
16# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
17# although not all choices may be available on all operating systems.
18# If running in a Windows environment this must be set to the same as your
19# system time zone.
20TIME_ZONE = 'Asia/Ho_Chi_Minh'
21
22# Language code for this installation. All choices can be found here:
23# http://www.i18nguy.com/unicode/language-identifiers.html
24LANGUAGE_CODE = 'fr-fr'
25
26SITE_ID = 1
27
28# If you set this to False, Django will make some optimizations so as not
29# to load the internationalization machinery.
30USE_I18N = True
31
32# Absolute path to the directory that holds media.
33# Example: "/home/media/media.lawrence.com/"
34MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media')
35
36# URL that handles the media served from MEDIA_ROOT. Make sure to use a
37# trailing slash if there is a path component (optional in other cases).
38# Examples: "http://media.lawrence.com", "http://example.com/media/"
39MEDIA_URL = '/media/'
40
41# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
42# trailing slash.
43# Examples: "http://foo.com/media/", "/media/".
44ADMIN_MEDIA_PREFIX = '/admin/media/'
45
46# List of callables that know how to import templates from various sources.
47TEMPLATE_LOADERS = (
48 'django.template.loaders.filesystem.load_template_source',
49 'django.template.loaders.app_directories.load_template_source',
50# 'django.template.loaders.eggs.load_template_source',
51)
52
53MIDDLEWARE_CLASSES = (
54 'django.middleware.common.CommonMiddleware',
55 'django.contrib.sessions.middleware.SessionMiddleware',
56 'django.contrib.auth.middleware.AuthenticationMiddleware',
57)
58
59ROOT_URLCONF = 'auf_zap.urls'
60
61TEMPLATE_DIRS = (
62 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
63 # Always use forward slashes, even on Windows.
64 # Don't forget to use absolute paths, not relative paths.
65 os.path.join(os.path.dirname(__file__), 'templates'),
66)
67
68INSTALLED_APPS = (
69 'django.contrib.auth',
70 'django.contrib.contenttypes',
71 'django.contrib.sessions',
72 'django.contrib.sites',
620c9d5d 73 'django.contrib.admindocs',
95710ba5
P
74 'django.contrib.admin',
75 'auf_zap.formations',
76)