Mercurial > public > bravenewsurf
comparison bns_website/settings/base.py @ 39:b9d6f6d930a9
Merged Chris and Brian's changes with mine.
author | Bob Mourlam <bob.mourlam@gmail.com> |
---|---|
date | Sun, 06 Nov 2011 20:28:25 -0600 |
parents | ced908af601a |
children | a0d3bc630ebd |
comparison
equal
deleted
inserted
replaced
38:6b4e02b8be6b | 39:b9d6f6d930a9 |
---|---|
1 # Django base settings for bns_website project. | 1 # Django base settings for bns_website project. |
2 | 2 |
3 import json | 3 import django.utils.simplejson as json |
4 import os | 4 import os |
5 | 5 |
6 PROJECT_PATH = os.path.abspath(os.path.join(os.path.split(__file__)[0], '..')) | 6 PROJECT_PATH = os.path.abspath(os.path.join(os.path.split(__file__)[0], '..')) |
7 | 7 |
8 DEBUG = True | 8 DEBUG = True |
9 TEMPLATE_DEBUG = DEBUG | 9 TEMPLATE_DEBUG = DEBUG |
10 | 10 |
11 ADMINS = [ | 11 ADMINS = [ |
12 ('Bob Mourlam', 'bob.mourlam@gmail.com'), | |
12 ('Brian Neal', 'bgneal@gmail.com'), | 13 ('Brian Neal', 'bgneal@gmail.com'), |
14 ('Chris Ridgway', 'ckridgway@gmail.com'), | |
13 ] | 15 ] |
14 | 16 |
15 MANAGERS = ADMINS | 17 MANAGERS = ADMINS |
16 | |
17 DATABASES = { | |
18 'default': { | |
19 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. | |
20 'NAME': '', # Or path to database file if using sqlite3. | |
21 'USER': '', # Not used with sqlite3. | |
22 'PASSWORD': '', # Not used with sqlite3. | |
23 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. | |
24 'PORT': '', # Set to empty string for default. Not used with sqlite3. | |
25 } | |
26 } | |
27 | 18 |
28 # Local time zone for this installation. Choices can be found here: | 19 # Local time zone for this installation. Choices can be found here: |
29 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name | 20 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
30 # although not all choices may be available on all operating systems. | 21 # although not all choices may be available on all operating systems. |
31 # On Unix systems, a value of None will cause Django to use the same | 22 # On Unix systems, a value of None will cause Django to use the same |
48 # calendars according to the current locale | 39 # calendars according to the current locale |
49 USE_L10N = True | 40 USE_L10N = True |
50 | 41 |
51 # Absolute filesystem path to the directory that will hold user-uploaded files. | 42 # Absolute filesystem path to the directory that will hold user-uploaded files. |
52 # Example: "/home/media/media.lawrence.com/media/" | 43 # Example: "/home/media/media.lawrence.com/media/" |
53 MEDIA_ROOT = os.path.abspath(os.path.join(PROJECT_PATH, '..', 'media')) | 44 MEDIA_ROOT = os.path.abspath(os.path.join(PROJECT_PATH, '..', '..', 'media')) |
54 | 45 |
55 # URL that handles the media served from MEDIA_ROOT. Make sure to use a | 46 # URL that handles the media served from MEDIA_ROOT. Make sure to use a |
56 # trailing slash. | 47 # trailing slash. |
57 # Examples: "http://media.lawrence.com/media/", "http://example.com/media/" | 48 # Examples: "http://media.lawrence.com/media/", "http://example.com/media/" |
58 MEDIA_URL = '/media/' | 49 MEDIA_URL = '/media/' |
59 | 50 |
60 # Absolute path to the directory static files should be collected to. | 51 # Absolute path to the directory static files should be collected to. |
61 # Don't put anything in this directory yourself; store your static files | 52 # Don't put anything in this directory yourself; store your static files |
62 # in apps' "static/" subdirectories and in STATICFILES_DIRS. | 53 # in apps' "static/" subdirectories and in STATICFILES_DIRS. |
63 # Example: "/home/media/media.lawrence.com/static/" | 54 # Example: "/home/media/media.lawrence.com/static/" |
64 STATIC_ROOT = os.path.abspath(os.path.join(PROJECT_PATH, '..', 'static')) | 55 STATIC_ROOT = os.path.abspath(os.path.join(PROJECT_PATH, '..', '..', 'static')) |
65 | 56 |
66 # URL prefix for static files. | 57 # URL prefix for static files. |
67 # Example: "http://media.lawrence.com/static/" | 58 # Example: "http://media.lawrence.com/static/" |
68 STATIC_URL = '/static/' | 59 STATIC_URL = '/static/' |
69 | 60 |
159 'level': 'ERROR', | 150 'level': 'ERROR', |
160 'propagate': True, | 151 'propagate': True, |
161 }, | 152 }, |
162 } | 153 } |
163 } | 154 } |
155 | |
156 ####################################################################### | |
157 # 3rd party Javascript and CSS files. | |
158 # | |
159 # Listed here to for DRY purposes. | |
160 # | |
161 THIRD_PARTY_JS = { | |
162 'tiny_mce': [ | |
163 'js/tinymce/jscripts/tiny_mce/tiny_mce.js', | |
164 'js/tiny_mce_init.js', | |
165 ], | |
166 } | |
167 | |
168 THIRD_PARTY_CSS = { | |
169 } |