comparison mysite/settings.py @ 1:0dcfcdf50c62

Initial import of Madeira project from the private repository.
author Brian Neal <bgneal@gmail.com>
date Mon, 06 Apr 2009 03:10:59 +0000
parents
children 6ad81d6a86bf
comparison
equal deleted inserted replaced
0:df0370bfe3f0 1:0dcfcdf50c62
1 # Django settings for madeira project.
2
3 import os
4 import platform
5 import local_settings
6 project_path = os.path.abspath(os.path.split(__file__)[0])
7
8 DEBUG = local_settings.DEBUG
9 TEMPLATE_DEBUG = DEBUG
10
11 ADMINS = (
12 ('Brian Neal', 'admin@surfguitar101.com'),
13 )
14
15 MANAGERS = ADMINS
16
17 DATABASE_ENGINE = local_settings.DATABASE_ENGINE
18 DATABASE_NAME = local_settings.DATABASE_NAME
19 DATABASE_USER = local_settings.DATABASE_USER
20 DATABASE_PASSWORD = local_settings.DATABASE_PASSWORD
21 DATABASE_HOST = local_settings.DATABASE_HOST
22 DATABASE_PORT = local_settings.DATABASE_PORT
23
24 INTERNAL_IPS = local_settings.INTERNAL_IPS
25
26 # Local time zone for this installation. Choices can be found here:
27 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
28 # although not all choices may be available on all operating systems.
29 # If running in a Windows environment this must be set to the same as your
30 # system time zone.
31 TIME_ZONE = local_settings.TIME_ZONE
32
33 # Language code for this installation. All choices can be found here:
34 # http://www.i18nguy.com/unicode/language-identifiers.html
35 LANGUAGE_CODE = 'en-us'
36
37 SITE_ID = local_settings.SITE_ID
38
39 # If you set this to False, Django will make some optimizations so as not
40 # to load the internationalization machinery.
41 USE_I18N = False
42
43 # Absolute path to the directory that holds media.
44 # Example: "/home/media/media.lawrence.com/"
45 MEDIA_ROOT = local_settings.MEDIA_ROOT
46
47 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
48 # trailing slash if there is a path component (optional in other cases).
49 # Examples: "http://media.lawrence.com", "http://example.com/media/"
50 MEDIA_URL = local_settings.MEDIA_URL
51
52 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
53 # trailing slash.
54 # Examples: "http://foo.com/media/", "/media/".
55 ADMIN_MEDIA_PREFIX = local_settings.ADMIN_MEDIA_PREFIX
56
57 # Make this unique, and don't share it with anybody.
58 SECRET_KEY = local_settings.SECRET_KEY
59
60 # List of callables that know how to import templates from various sources.
61 TEMPLATE_LOADERS = (
62 'django.template.loaders.filesystem.load_template_source',
63 'django.template.loaders.app_directories.load_template_source',
64 )
65
66 if not DEBUG:
67 CACHE_BACKEND = local_settings.CACHE_BACKEND
68 CACHE_MIDDLEWARE_SECONDS = local_settings.CACHE_MIDDLEWARE_SECONDS
69 CACHE_MIDDLEWARE_KEY_PREFIX = local_settings.CACHE_MIDDLEWARE_KEY_PREFIX
70 CACHE_MIDDLEWARE_ANONYMOUS_ONLY = local_settings.CACHE_MIDDLEWARE_ANONYMOUS_ONLY
71
72 MIDDLEWARE_CLASSES = local_settings.MIDDLEWARE_CLASSES
73
74 ROOT_URLCONF = 'mysite.urls'
75
76 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
77 # Always use forward slashes, even on Windows.
78 # Don't forget to use absolute paths, not relative paths.
79 TEMPLATE_DIRS = (
80 os.path.join(project_path, 'templates'),
81 os.path.join(project_path, 'templates', 'band'),
82 os.path.join(project_path, 'photologue', 'templates'),
83 )
84
85 TEMPLATE_CONTEXT_PROCESSORS = (
86 'django.core.context_processors.auth',
87 'django.core.context_processors.debug',
88 'django.core.context_processors.media',
89 'django.core.context_processors.request'
90 )
91
92 INSTALLED_APPS = (
93 'django.contrib.auth',
94 'django.contrib.contenttypes',
95 'django.contrib.sessions',
96 'django.contrib.admin',
97 'django.contrib.markup',
98 'django.contrib.sites',
99 'django.contrib.flatpages',
100 'mysite.band',
101 'mysite.photologue',
102 )