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