equal
deleted
inserted
replaced
47 USE_I18N = True |
47 USE_I18N = True |
48 |
48 |
49 # Absolute path to the directory that holds media. |
49 # Absolute path to the directory that holds media. |
50 # Example: "/home/media/media.lawrence.com/" |
50 # Example: "/home/media/media.lawrence.com/" |
51 MEDIA_ROOT = '' |
51 MEDIA_ROOT = '' |
|
52 |
|
53 # Root of static files used by each app, generated by code or uploaded by users |
|
54 STATIC_URL = '/static/' |
52 |
55 |
53 # URL that handles the media served from MEDIA_ROOT. Make sure to use a |
56 # URL that handles the media served from MEDIA_ROOT. Make sure to use a |
54 # trailing slash if there is a path component (optional in other cases). |
57 # trailing slash if there is a path component (optional in other cases). |
55 # Examples: "http://media.lawrence.com", "http://example.com/media/" |
58 # Examples: "http://media.lawrence.com", "http://example.com/media/" |
56 MEDIA_URL = '' |
59 MEDIA_URL = '' |
199 |
202 |
200 if not "GLOBAL_LOG_LEVEL" in locals(): |
203 if not "GLOBAL_LOG_LEVEL" in locals(): |
201 GLOBAL_LOG_LEVEL = LOG_LEVEL |
204 GLOBAL_LOG_LEVEL = LOG_LEVEL |
202 if not "GLOBAL_LOG_HANDLERS" in locals(): |
205 if not "GLOBAL_LOG_HANDLERS" in locals(): |
203 GLOBAL_LOG_HANDLERS = [{'handler':logging.FileHandler(LOG_FILE), 'format':"%(asctime)s - %(levelname)s : %(message)s"}] |
206 GLOBAL_LOG_HANDLERS = [{'handler':logging.FileHandler(LOG_FILE), 'format':"%(asctime)s - %(levelname)s : %(message)s"}] |
204 |
207 |
|
208 |
|
209 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
|
210 # trailing slash. |
|
211 # Examples: "http://foo.com/media/", "/media/". |
|
212 ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin/' |
|
213 # Used in a lot of templates |
|
214 LDT_MEDIA_PREFIX = STATIC_URL + 'ldt/' |
|
215 # URL that handles the media served from MEDIA_ROOT. |
|
216 MEDIA_URL = BASE_URL + 'static/media/' |