summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2010-12-29 17:46:09 -0500
committerMike Crute <mcrute@gmail.com>2010-12-29 17:46:09 -0500
commitb8bc3f6a387956dd412f986632a6c0dcdd9afd72 (patch)
treea2f05242ae5bc0044137067768dbeff3b634ce7f
parent564d32090a06e4ae7d7d8a7aa7d0925daa8a10c6 (diff)
downloadgreenbox-b8bc3f6a387956dd412f986632a6c0dcdd9afd72.tar.bz2
greenbox-b8bc3f6a387956dd412f986632a6c0dcdd9afd72.tar.xz
greenbox-b8bc3f6a387956dd412f986632a6c0dcdd9afd72.zip
Cleaning up config file
-rw-r--r--greenbox/settings.py16
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 @@
1import os.path
2
1SITE_ID = 1 3SITE_ID = 1
2USE_I18N = False 4USE_I18N = False
3DEBUG = True 5DEBUG = True
4TEMPLATE_DEBUG = DEBUG 6TEMPLATE_DEBUG = DEBUG
5 7
8PROJECT_DIR = os.path.abspath(os.path.dirname(__file__))
9
6ADMINS = ( 10ADMINS = (
7 ('Mike Crute', 'mcrute@gmail.com'), 11 ('Mike Crute', 'mcrute@gmail.com'),
8) 12)
@@ -10,8 +14,8 @@ ADMINS = (
10MANAGERS = ADMINS 14MANAGERS = ADMINS
11 15
12DATABASE_ENGINE = 'sqlite3' 16DATABASE_ENGINE = 'sqlite3'
13DATABASE_NAME = '/srv/greenbox/greenbox.db' 17#DATABASE_NAME = '/srv/greenbox/greenbox.db'
14#DATABASE_NAME = '/Users/mcrute/sandboxes/greenbox/src/greenbox.db' 18DATABASE_NAME = '/Users/mcrute/sandboxes/greenbox/src/greenbox.db'
15 19
16TIME_ZONE = 'America/New_York' 20TIME_ZONE = 'America/New_York'
17LANGUAGE_CODE = 'en-us' 21LANGUAGE_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/"
22MEDIA_ROOT = '' 26MEDIA_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/"
27MEDIA_URL = '' 31MEDIA_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/".
32ADMIN_MEDIA_PREFIX = '/media/' 36ADMIN_MEDIA_PREFIX = MEDIA_URL + 'admin/'
33 37
34SECRET_KEY = 'zki4e4!80ar7^1w6f_c2u^5#=r(7#4%0u^3il^@__#3zf^u+f)' 38SECRET_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
47TEMPLATE_DIRS = ( 51TEMPLATE_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
51INSTALLED_APPS = ( 55INSTALLED_APPS = (