annotate bns_website/settings.py @ 0:c8881d9ca347

Initial commit after running 'django-admin.py startproject'.
author Brian Neal <bgneal@gmail.com>
date Tue, 25 Oct 2011 18:38:42 -0500
parents
children
rev   line source
bgneal@0 1 # Django settings for bns_website project.
bgneal@0 2
bgneal@0 3 DEBUG = True
bgneal@0 4 TEMPLATE_DEBUG = DEBUG
bgneal@0 5
bgneal@0 6 ADMINS = (
bgneal@0 7 # ('Your Name', 'your_email@example.com'),
bgneal@0 8 )
bgneal@0 9
bgneal@0 10 MANAGERS = ADMINS
bgneal@0 11
bgneal@0 12 DATABASES = {
bgneal@0 13 'default': {
bgneal@0 14 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
bgneal@0 15 'NAME': '', # Or path to database file if using sqlite3.
bgneal@0 16 'USER': '', # Not used with sqlite3.
bgneal@0 17 'PASSWORD': '', # Not used with sqlite3.
bgneal@0 18 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
bgneal@0 19 'PORT': '', # Set to empty string for default. Not used with sqlite3.
bgneal@0 20 }
bgneal@0 21 }
bgneal@0 22
bgneal@0 23 # Local time zone for this installation. Choices can be found here:
bgneal@0 24 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
bgneal@0 25 # although not all choices may be available on all operating systems.
bgneal@0 26 # On Unix systems, a value of None will cause Django to use the same
bgneal@0 27 # timezone as the operating system.
bgneal@0 28 # If running in a Windows environment this must be set to the same as your
bgneal@0 29 # system time zone.
bgneal@0 30 TIME_ZONE = 'America/Chicago'
bgneal@0 31
bgneal@0 32 # Language code for this installation. All choices can be found here:
bgneal@0 33 # http://www.i18nguy.com/unicode/language-identifiers.html
bgneal@0 34 LANGUAGE_CODE = 'en-us'
bgneal@0 35
bgneal@0 36 SITE_ID = 1
bgneal@0 37
bgneal@0 38 # If you set this to False, Django will make some optimizations so as not
bgneal@0 39 # to load the internationalization machinery.
bgneal@0 40 USE_I18N = True
bgneal@0 41
bgneal@0 42 # If you set this to False, Django will not format dates, numbers and
bgneal@0 43 # calendars according to the current locale
bgneal@0 44 USE_L10N = True
bgneal@0 45
bgneal@0 46 # Absolute filesystem path to the directory that will hold user-uploaded files.
bgneal@0 47 # Example: "/home/media/media.lawrence.com/media/"
bgneal@0 48 MEDIA_ROOT = ''
bgneal@0 49
bgneal@0 50 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
bgneal@0 51 # trailing slash.
bgneal@0 52 # Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
bgneal@0 53 MEDIA_URL = ''
bgneal@0 54
bgneal@0 55 # Absolute path to the directory static files should be collected to.
bgneal@0 56 # Don't put anything in this directory yourself; store your static files
bgneal@0 57 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
bgneal@0 58 # Example: "/home/media/media.lawrence.com/static/"
bgneal@0 59 STATIC_ROOT = ''
bgneal@0 60
bgneal@0 61 # URL prefix for static files.
bgneal@0 62 # Example: "http://media.lawrence.com/static/"
bgneal@0 63 STATIC_URL = '/static/'
bgneal@0 64
bgneal@0 65 # URL prefix for admin static files -- CSS, JavaScript and images.
bgneal@0 66 # Make sure to use a trailing slash.
bgneal@0 67 # Examples: "http://foo.com/static/admin/", "/static/admin/".
bgneal@0 68 ADMIN_MEDIA_PREFIX = '/static/admin/'
bgneal@0 69
bgneal@0 70 # Additional locations of static files
bgneal@0 71 STATICFILES_DIRS = (
bgneal@0 72 # Put strings here, like "/home/html/static" or "C:/www/django/static".
bgneal@0 73 # Always use forward slashes, even on Windows.
bgneal@0 74 # Don't forget to use absolute paths, not relative paths.
bgneal@0 75 )
bgneal@0 76
bgneal@0 77 # List of finder classes that know how to find static files in
bgneal@0 78 # various locations.
bgneal@0 79 STATICFILES_FINDERS = (
bgneal@0 80 'django.contrib.staticfiles.finders.FileSystemFinder',
bgneal@0 81 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
bgneal@0 82 # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
bgneal@0 83 )
bgneal@0 84
bgneal@0 85 # Make this unique, and don't share it with anybody.
bgneal@0 86 SECRET_KEY = 'idbk4^9!)q2lxidhh@1n5ev!11yrhvwhn#%$9m0+=#&*-_$jco'
bgneal@0 87
bgneal@0 88 # List of callables that know how to import templates from various sources.
bgneal@0 89 TEMPLATE_LOADERS = (
bgneal@0 90 'django.template.loaders.filesystem.Loader',
bgneal@0 91 'django.template.loaders.app_directories.Loader',
bgneal@0 92 # 'django.template.loaders.eggs.Loader',
bgneal@0 93 )
bgneal@0 94
bgneal@0 95 MIDDLEWARE_CLASSES = (
bgneal@0 96 'django.middleware.common.CommonMiddleware',
bgneal@0 97 'django.contrib.sessions.middleware.SessionMiddleware',
bgneal@0 98 'django.middleware.csrf.CsrfViewMiddleware',
bgneal@0 99 'django.contrib.auth.middleware.AuthenticationMiddleware',
bgneal@0 100 'django.contrib.messages.middleware.MessageMiddleware',
bgneal@0 101 )
bgneal@0 102
bgneal@0 103 ROOT_URLCONF = 'bns_website.urls'
bgneal@0 104
bgneal@0 105 TEMPLATE_DIRS = (
bgneal@0 106 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
bgneal@0 107 # Always use forward slashes, even on Windows.
bgneal@0 108 # Don't forget to use absolute paths, not relative paths.
bgneal@0 109 )
bgneal@0 110
bgneal@0 111 INSTALLED_APPS = (
bgneal@0 112 'django.contrib.auth',
bgneal@0 113 'django.contrib.contenttypes',
bgneal@0 114 'django.contrib.sessions',
bgneal@0 115 'django.contrib.sites',
bgneal@0 116 'django.contrib.messages',
bgneal@0 117 'django.contrib.staticfiles',
bgneal@0 118 # Uncomment the next line to enable the admin:
bgneal@0 119 # 'django.contrib.admin',
bgneal@0 120 # Uncomment the next line to enable admin documentation:
bgneal@0 121 # 'django.contrib.admindocs',
bgneal@0 122 )
bgneal@0 123
bgneal@0 124 # A sample logging configuration. The only tangible logging
bgneal@0 125 # performed by this configuration is to send an email to
bgneal@0 126 # the site admins on every HTTP 500 error.
bgneal@0 127 # See http://docs.djangoproject.com/en/dev/topics/logging for
bgneal@0 128 # more details on how to customize your logging configuration.
bgneal@0 129 LOGGING = {
bgneal@0 130 'version': 1,
bgneal@0 131 'disable_existing_loggers': False,
bgneal@0 132 'handlers': {
bgneal@0 133 'mail_admins': {
bgneal@0 134 'level': 'ERROR',
bgneal@0 135 'class': 'django.utils.log.AdminEmailHandler'
bgneal@0 136 }
bgneal@0 137 },
bgneal@0 138 'loggers': {
bgneal@0 139 'django.request': {
bgneal@0 140 'handlers': ['mail_admins'],
bgneal@0 141 'level': 'ERROR',
bgneal@0 142 'propagate': True,
bgneal@0 143 },
bgneal@0 144 }
bgneal@0 145 }