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