| author | ymh <ymh.work@gmail.com> |
| Thu, 22 Nov 2012 23:25:34 +0100 | |
| changeset 78 | ac95f4f710db |
| parent 47 | 6bebef3405d5 |
| 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 |
|
| 47 | 33 |
ugettext = lambda s: s |
34 |
||
35 |
LANGUAGES = ( |
|
36 |
('fr', ugettext('French')), |
|
37 |
('en', ugettext('English')), |
|
38 |
('ja', ugettext('Japanese')), |
|
39 |
) |
|
40 |
||
41 |
||
|
37
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
42 |
SITE_ID = 1 |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
43 |
|
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
44 |
# 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
|
45 |
# to load the internationalization machinery. |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
46 |
USE_I18N = True |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
47 |
|
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
48 |
# 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
|
49 |
# calendars according to the current locale. |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
50 |
USE_L10N = True |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
51 |
|
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
52 |
# 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
|
53 |
USE_TZ = True |
|
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 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
|
56 |
# Example: "/home/media/media.lawrence.com/media/" |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
57 |
MEDIA_ROOT = '' |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
58 |
|
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
59 |
# 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
|
60 |
# trailing slash. |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
61 |
# 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
|
62 |
MEDIA_URL = '' |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
63 |
|
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
64 |
# 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
|
65 |
# 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
|
66 |
# in apps' "static/" subdirectories and in STATICFILES_DIRS. |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
67 |
# Example: "/home/media/media.lawrence.com/static/" |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
68 |
STATIC_ROOT = '' |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
69 |
|
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
70 |
# URL prefix for static files. |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
71 |
# Example: "http://media.lawrence.com/static/" |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
72 |
STATIC_URL = '/static/' |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
73 |
|
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
74 |
# Additional locations of static files |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
75 |
STATICFILES_DIRS = ( |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
76 |
# 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
|
77 |
# Always use forward slashes, even on Windows. |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
78 |
# 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
|
79 |
) |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
80 |
|
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
81 |
# 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
|
82 |
# various locations. |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
83 |
STATICFILES_FINDERS = ( |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
84 |
'django.contrib.staticfiles.finders.FileSystemFinder', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
85 |
'django.contrib.staticfiles.finders.AppDirectoriesFinder', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
86 |
# 'django.contrib.staticfiles.finders.DefaultStorageFinder', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
87 |
) |
|
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 |
# 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
|
90 |
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
|
91 |
|
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
92 |
# 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
|
93 |
TEMPLATE_LOADERS = ( |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
94 |
'django.template.loaders.filesystem.Loader', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
95 |
'django.template.loaders.app_directories.Loader', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
96 |
# 'django.template.loaders.eggs.Loader', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
97 |
) |
|
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 |
MIDDLEWARE_CLASSES = ( |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
100 |
'django.middleware.common.CommonMiddleware', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
101 |
'django.contrib.sessions.middleware.SessionMiddleware', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
102 |
'django.middleware.csrf.CsrfViewMiddleware', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
103 |
'django.contrib.auth.middleware.AuthenticationMiddleware', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
104 |
'django.contrib.messages.middleware.MessageMiddleware', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
105 |
# Uncomment the next line for simple clickjacking protection: |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
106 |
# 'django.middleware.clickjacking.XFrameOptionsMiddleware', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
107 |
) |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
108 |
|
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
109 |
ROOT_URLCONF = 'hp.urls' |
|
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 |
# 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
|
112 |
WSGI_APPLICATION = 'hp.wsgi.application' |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
113 |
|
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
114 |
TEMPLATE_DIRS = ( |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
115 |
# 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
|
116 |
# Always use forward slashes, even on Windows. |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
117 |
# 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
|
118 |
) |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
119 |
|
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
120 |
INSTALLED_APPS = ( |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
121 |
'django.contrib.auth', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
122 |
'django.contrib.contenttypes', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
123 |
'django.contrib.sessions', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
124 |
'django.contrib.sites', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
125 |
'django.contrib.messages', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
126 |
'django.contrib.staticfiles', |
| 38 | 127 |
'django.contrib.admin', |
128 |
'sorl.thumbnail', |
|
129 |
'south', |
|
130 |
'hp', |
|
|
37
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
131 |
# Uncomment the next line to enable admin documentation: |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
132 |
# 'django.contrib.admindocs', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
133 |
) |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
134 |
|
| 38 | 135 |
TEMPLATE_CONTEXT_PROCESSORS = ( |
136 |
"django.core.context_processors.request", |
|
137 |
"django.contrib.auth.context_processors.auth", |
|
138 |
"django.core.context_processors.debug", |
|
139 |
"django.core.context_processors.i18n", |
|
140 |
"django.core.context_processors.media", |
|
141 |
"django.core.context_processors.static", |
|
142 |
'hp.context_processors.hp_context', |
|
143 |
) |
|
144 |
||
145 |
||
|
37
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
146 |
# A sample logging configuration. The only tangible logging |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
147 |
# 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
|
148 |
# 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
|
149 |
# 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
|
150 |
# 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
|
151 |
LOGGING = { |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
152 |
'version': 1, |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
153 |
'disable_existing_loggers': False, |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
154 |
'filters': { |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
155 |
'require_debug_false': { |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
156 |
'()': 'django.utils.log.RequireDebugFalse' |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
157 |
} |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
158 |
}, |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
159 |
'handlers': { |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
160 |
'mail_admins': { |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
161 |
'level': 'ERROR', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
162 |
'filters': ['require_debug_false'], |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
163 |
'class': 'django.utils.log.AdminEmailHandler' |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
164 |
} |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
165 |
}, |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
166 |
'loggers': { |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
167 |
'django.request': { |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
168 |
'handlers': ['mail_admins'], |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
169 |
'level': 'ERROR', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
170 |
'propagate': True, |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
171 |
}, |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
172 |
} |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
173 |
} |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
174 |
|
| 45 | 175 |
LDT_NETLOC = "capsicum" |
176 |
LDT_DOMAIN = 'http://'+LDT_NETLOC |
|
| 43 | 177 |
LDT_BASE_URL = LDT_DOMAIN + '/pf/' |
|
41
b6010b3d6ea8
add proxy, model, and correct embed_player
ymh <ymh.work@gmail.com>
parents:
38
diff
changeset
|
178 |
LDT_URL = LDT_BASE_URL + "ldtplatform/" |
|
b6010b3d6ea8
add proxy, model, and correct embed_player
ymh <ymh.work@gmail.com>
parents:
38
diff
changeset
|
179 |
LDT_API_URL = LDT_URL + 'api/ldt/1.0/' |
|
b6010b3d6ea8
add proxy, model, and correct embed_player
ymh <ymh.work@gmail.com>
parents:
38
diff
changeset
|
180 |
LDT_STATIC_URL = LDT_BASE_URL + "static/site/" |
|
b6010b3d6ea8
add proxy, model, and correct embed_player
ymh <ymh.work@gmail.com>
parents:
38
diff
changeset
|
181 |
|
|
b6010b3d6ea8
add proxy, model, and correct embed_player
ymh <ymh.work@gmail.com>
parents:
38
diff
changeset
|
182 |
KC_URL = 'http://176.32.94.234/kn-concierge/' |
|
b6010b3d6ea8
add proxy, model, and correct embed_player
ymh <ymh.work@gmail.com>
parents:
38
diff
changeset
|
183 |
|
| 45 | 184 |
PER_PAGE = 9 |
185 |
LDT_MAX_FETCH = 200 |
|
186 |
||
187 |
||
|
37
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
188 |
|
| 38 | 189 |
from .config import * #@UnusedWildImport |
190 |
||
|
41
b6010b3d6ea8
add proxy, model, and correct embed_player
ymh <ymh.work@gmail.com>
parents:
38
diff
changeset
|
191 |
|
|
b6010b3d6ea8
add proxy, model, and correct embed_player
ymh <ymh.work@gmail.com>
parents:
38
diff
changeset
|
192 |