comparison bns_website/settings/base.py @ 26:6f68f6800843

For #5, make some tweaks to the files to prepare for production hosting.
author Brian Neal <bgneal@gmail.com>
date Tue, 01 Nov 2011 19:17:07 -0500
parents 71f2beb03789
children a5e8741452a3
comparison
equal deleted inserted replaced
25:72bfeac8f4f3 26:6f68f6800843
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