diff options
author | Mike Crute <mcrute@gmail.com> | 2010-12-29 17:46:09 -0500 |
---|---|---|
committer | Mike Crute <mcrute@gmail.com> | 2010-12-29 17:46:09 -0500 |
commit | b8bc3f6a387956dd412f986632a6c0dcdd9afd72 (patch) | |
tree | a2f05242ae5bc0044137067768dbeff3b634ce7f | |
parent | 564d32090a06e4ae7d7d8a7aa7d0925daa8a10c6 (diff) | |
download | greenbox-b8bc3f6a387956dd412f986632a6c0dcdd9afd72.tar.bz2 greenbox-b8bc3f6a387956dd412f986632a6c0dcdd9afd72.tar.xz greenbox-b8bc3f6a387956dd412f986632a6c0dcdd9afd72.zip |
Cleaning up config file
-rw-r--r-- | greenbox/settings.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/greenbox/settings.py b/greenbox/settings.py index a496391..1a2b91d 100644 --- a/greenbox/settings.py +++ b/greenbox/settings.py | |||
@@ -1,8 +1,12 @@ | |||
1 | import os.path | ||
2 | |||
1 | SITE_ID = 1 | 3 | SITE_ID = 1 |
2 | USE_I18N = False | 4 | USE_I18N = False |
3 | DEBUG = True | 5 | DEBUG = True |
4 | TEMPLATE_DEBUG = DEBUG | 6 | TEMPLATE_DEBUG = DEBUG |
5 | 7 | ||
8 | PROJECT_DIR = os.path.abspath(os.path.dirname(__file__)) | ||
9 | |||
6 | ADMINS = ( | 10 | ADMINS = ( |
7 | ('Mike Crute', 'mcrute@gmail.com'), | 11 | ('Mike Crute', 'mcrute@gmail.com'), |
8 | ) | 12 | ) |
@@ -10,8 +14,8 @@ ADMINS = ( | |||
10 | MANAGERS = ADMINS | 14 | MANAGERS = ADMINS |
11 | 15 | ||
12 | DATABASE_ENGINE = 'sqlite3' | 16 | DATABASE_ENGINE = 'sqlite3' |
13 | DATABASE_NAME = '/srv/greenbox/greenbox.db' | 17 | #DATABASE_NAME = '/srv/greenbox/greenbox.db' |
14 | #DATABASE_NAME = '/Users/mcrute/sandboxes/greenbox/src/greenbox.db' | 18 | DATABASE_NAME = '/Users/mcrute/sandboxes/greenbox/src/greenbox.db' |
15 | 19 | ||
16 | TIME_ZONE = 'America/New_York' | 20 | TIME_ZONE = 'America/New_York' |
17 | LANGUAGE_CODE = 'en-us' | 21 | LANGUAGE_CODE = 'en-us' |
@@ -19,17 +23,17 @@ ROOT_URLCONF = 'greenbox.urls' | |||
19 | 23 | ||
20 | # Absolute path to the directory that holds media. | 24 | # Absolute path to the directory that holds media. |
21 | # Example: "/home/media/media.lawrence.com/" | 25 | # Example: "/home/media/media.lawrence.com/" |
22 | MEDIA_ROOT = '' | 26 | MEDIA_ROOT = os.path.join(PROJECT_DIR, 'templates/media') |
23 | 27 | ||
24 | # URL that handles the media served from MEDIA_ROOT. Make sure to use a | 28 | # URL that handles the media served from MEDIA_ROOT. Make sure to use a |
25 | # trailing slash if there is a path component (optional in other cases). | 29 | # trailing slash if there is a path component (optional in other cases). |
26 | # Examples: "http://media.lawrence.com", "http://example.com/media/" | 30 | # Examples: "http://media.lawrence.com", "http://example.com/media/" |
27 | MEDIA_URL = '' | 31 | MEDIA_URL = '/media' |
28 | 32 | ||
29 | # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a | 33 | # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
30 | # trailing slash. | 34 | # trailing slash. |
31 | # Examples: "http://foo.com/media/", "/media/". | 35 | # Examples: "http://foo.com/media/", "/media/". |
32 | ADMIN_MEDIA_PREFIX = '/media/' | 36 | ADMIN_MEDIA_PREFIX = MEDIA_URL + 'admin/' |
33 | 37 | ||
34 | SECRET_KEY = 'zki4e4!80ar7^1w6f_c2u^5#=r(7#4%0u^3il^@__#3zf^u+f)' | 38 | SECRET_KEY = 'zki4e4!80ar7^1w6f_c2u^5#=r(7#4%0u^3il^@__#3zf^u+f)' |
35 | 39 | ||
@@ -45,7 +49,7 @@ MIDDLEWARE_CLASSES = ( | |||
45 | ) | 49 | ) |
46 | 50 | ||
47 | TEMPLATE_DIRS = ( | 51 | TEMPLATE_DIRS = ( |
48 | # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". | 52 | os.path.join(PROJECT_DIR, 'templates'), |
49 | ) | 53 | ) |
50 | 54 | ||
51 | INSTALLED_APPS = ( | 55 | INSTALLED_APPS = ( |