bgneal@1: # Django settings for madeira project. bgneal@1: bgneal@1: import os bgneal@1: import platform bgneal@1: import local_settings bgneal@1: project_path = os.path.abspath(os.path.split(__file__)[0]) bgneal@1: bgneal@1: DEBUG = local_settings.DEBUG bgneal@1: TEMPLATE_DEBUG = DEBUG bgneal@1: bgneal@1: ADMINS = ( bgneal@1: ('Brian Neal', 'admin@surfguitar101.com'), bgneal@1: ) bgneal@1: bgneal@1: MANAGERS = ADMINS bgneal@1: bgneal@1: DATABASE_ENGINE = local_settings.DATABASE_ENGINE bgneal@1: DATABASE_NAME = local_settings.DATABASE_NAME bgneal@1: DATABASE_USER = local_settings.DATABASE_USER bgneal@1: DATABASE_PASSWORD = local_settings.DATABASE_PASSWORD bgneal@1: DATABASE_HOST = local_settings.DATABASE_HOST bgneal@1: DATABASE_PORT = local_settings.DATABASE_PORT bgneal@1: bgneal@1: INTERNAL_IPS = local_settings.INTERNAL_IPS bgneal@1: bgneal@1: # Local time zone for this installation. Choices can be found here: bgneal@1: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name bgneal@1: # although not all choices may be available on all operating systems. bgneal@1: # If running in a Windows environment this must be set to the same as your bgneal@1: # system time zone. bgneal@1: TIME_ZONE = local_settings.TIME_ZONE bgneal@1: bgneal@1: # Language code for this installation. All choices can be found here: bgneal@1: # http://www.i18nguy.com/unicode/language-identifiers.html bgneal@1: LANGUAGE_CODE = 'en-us' bgneal@1: bgneal@1: SITE_ID = local_settings.SITE_ID bgneal@1: bgneal@1: # If you set this to False, Django will make some optimizations so as not bgneal@1: # to load the internationalization machinery. bgneal@1: USE_I18N = False bgneal@1: bgneal@1: # Absolute path to the directory that holds media. bgneal@1: # Example: "/home/media/media.lawrence.com/" bgneal@1: MEDIA_ROOT = local_settings.MEDIA_ROOT bgneal@1: bgneal@1: # URL that handles the media served from MEDIA_ROOT. Make sure to use a bgneal@1: # trailing slash if there is a path component (optional in other cases). bgneal@1: # Examples: "http://media.lawrence.com", "http://example.com/media/" bgneal@1: MEDIA_URL = local_settings.MEDIA_URL bgneal@1: bgneal@1: # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a bgneal@1: # trailing slash. bgneal@1: # Examples: "http://foo.com/media/", "/media/". bgneal@1: ADMIN_MEDIA_PREFIX = local_settings.ADMIN_MEDIA_PREFIX bgneal@1: bgneal@1: # Make this unique, and don't share it with anybody. bgneal@1: SECRET_KEY = local_settings.SECRET_KEY bgneal@1: bgneal@1: # List of callables that know how to import templates from various sources. bgneal@1: TEMPLATE_LOADERS = ( bgneal@1: 'django.template.loaders.filesystem.load_template_source', bgneal@1: 'django.template.loaders.app_directories.load_template_source', bgneal@1: ) bgneal@1: bgneal@1: if not DEBUG: bgneal@1: CACHE_BACKEND = local_settings.CACHE_BACKEND bgneal@1: CACHE_MIDDLEWARE_SECONDS = local_settings.CACHE_MIDDLEWARE_SECONDS bgneal@1: CACHE_MIDDLEWARE_KEY_PREFIX = local_settings.CACHE_MIDDLEWARE_KEY_PREFIX bgneal@1: CACHE_MIDDLEWARE_ANONYMOUS_ONLY = local_settings.CACHE_MIDDLEWARE_ANONYMOUS_ONLY bgneal@1: bgneal@1: MIDDLEWARE_CLASSES = local_settings.MIDDLEWARE_CLASSES bgneal@1: bgneal@1: ROOT_URLCONF = 'mysite.urls' bgneal@1: bgneal@1: # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". bgneal@1: # Always use forward slashes, even on Windows. bgneal@1: # Don't forget to use absolute paths, not relative paths. bgneal@1: TEMPLATE_DIRS = ( bgneal@1: os.path.join(project_path, 'templates'), bgneal@1: os.path.join(project_path, 'templates', 'band'), bgneal@1: os.path.join(project_path, 'photologue', 'templates'), bgneal@1: ) bgneal@1: bgneal@1: TEMPLATE_CONTEXT_PROCESSORS = ( bgneal@1: 'django.core.context_processors.auth', bgneal@1: 'django.core.context_processors.debug', bgneal@1: 'django.core.context_processors.media', bgneal@1: 'django.core.context_processors.request' bgneal@1: ) bgneal@1: bgneal@1: INSTALLED_APPS = ( bgneal@1: 'django.contrib.auth', bgneal@1: 'django.contrib.contenttypes', bgneal@1: 'django.contrib.sessions', bgneal@1: 'django.contrib.admin', bgneal@1: 'django.contrib.markup', bgneal@1: 'django.contrib.sites', bgneal@1: 'django.contrib.flatpages', bgneal@1: 'mysite.band', bgneal@1: 'mysite.photologue', bgneal@1: )