equal
deleted
inserted
replaced
31 # knowledge of the CeCILL-B license and that you accept its terms. |
31 # knowledge of the CeCILL-B license and that you accept its terms. |
32 # |
32 # |
33 |
33 |
34 # Django settings for p4l project. |
34 # Django settings for p4l project. |
35 from django.conf import global_settings |
35 from django.conf import global_settings |
|
36 import os |
36 |
37 |
37 DEBUG = True |
38 DEBUG = True |
38 TEMPLATE_DEBUG = DEBUG |
39 TEMPLATE_DEBUG = DEBUG |
39 |
40 |
40 ADMINS = ( |
41 ADMINS = ( |
127 |
128 |
128 # List of callables that know how to import templates from various sources. |
129 # List of callables that know how to import templates from various sources. |
129 TEMPLATE_LOADERS = ( |
130 TEMPLATE_LOADERS = ( |
130 'django.template.loaders.filesystem.Loader', |
131 'django.template.loaders.filesystem.Loader', |
131 'django.template.loaders.app_directories.Loader', |
132 'django.template.loaders.app_directories.Loader', |
|
133 'p4l.templateloaders.Loader' |
132 # 'django.template.loaders.eggs.Loader', |
134 # 'django.template.loaders.eggs.Loader', |
133 ) |
135 ) |
134 |
136 |
135 MIDDLEWARE_CLASSES = ( |
137 MIDDLEWARE_CLASSES = ( |
136 'django.middleware.common.CommonMiddleware', |
138 'django.middleware.common.CommonMiddleware', |
154 |
156 |
155 TEMPLATE_DIRS = ( |
157 TEMPLATE_DIRS = ( |
156 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
158 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
157 # Always use forward slashes, even on Windows. |
159 # Always use forward slashes, even on Windows. |
158 # Don't forget to use absolute paths, not relative paths. |
160 # Don't forget to use absolute paths, not relative paths. |
|
161 os.path.join(os.path.dirname(__file__), 'templates'), |
159 ) |
162 ) |
160 |
163 |
161 INSTALLED_APPS = ( |
164 INSTALLED_APPS = ( |
162 'django.contrib.auth', |
165 'django.contrib.auth', |
163 'django.contrib.contenttypes', |
166 'django.contrib.contenttypes', |
453 (u"Yiddish", "yi"), |
456 (u"Yiddish", "yi"), |
454 (u"Yoruba", "yo"), |
457 (u"Yoruba", "yo"), |
455 (u"Zhuang; Chuang", "za"), |
458 (u"Zhuang; Chuang", "za"), |
456 (u"Zulu", "zu")] |
459 (u"Zulu", "zu")] |
457 |
460 |
|
461 # cf http://docs.python.org/2/library/subprocess.html#popen-constructor |
|
462 ADMIN_SCRIPT = {} |
|
463 |
|
464 SCRIPT_WAIT = .250 |
|
465 SCRIPT_MAX_WAIT = 40 # * SCRIPT_WAIT = 10 sec |
|
466 |
458 from config import * # @UnusedWildImport |
467 from config import * # @UnusedWildImport |
459 |
468 |
460 if not "SRC_BASE_URL" in locals(): |
469 if not "SRC_BASE_URL" in locals(): |
461 SRC_BASE_URL = BASE_URL + __name__.split('.')[0] + '/' |
470 SRC_BASE_URL = BASE_URL + __name__.split('.')[0] + '/' |
462 if not "LOGIN_URL" in locals(): |
471 if not "LOGIN_URL" in locals(): |