1 # BC CMS - Content Management System
2 # Copyright (c) 2008, Carlos Daniel Ruvalcaba Valenzuela
5 # Redistribution and use in source and binary forms, with or without modification,
6 # are permitted provided that the following conditions are met:
8 # * Redistributions of source code must retain the above copyright notice, this
9 # list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above copyright notice, this
11 # list of conditions and the following disclaimer in the documentation and/or other
12 # materials provided with the distribution.
13 # * Neither the name of the BlackChair Software nor the names of its contributors may be
14 # used to endorse or promote products derived from this software without specific prior
17 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
18 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
19 # FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
20 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23 # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
24 # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 APP_ROOT
= os
.sys
.path
[0] or os
.curdir
31 TEMPLATE_DEBUG
= DEBUG
34 # ('Your Name', 'your_email@domain.com'),
39 DATABASE_ENGINE
= 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
40 DATABASE_NAME
= 'database.db' # Or path to database file if using sqlite3.
41 DATABASE_USER
= '' # Not used with sqlite3.
42 DATABASE_PASSWORD
= '' # Not used with sqlite3.
43 DATABASE_HOST
= '' # Set to empty string for localhost. Not used with sqlite3.
44 DATABASE_PORT
= '' # Set to empty string for default. Not used with sqlite3.
46 # Local time zone for this installation. Choices can be found here:
47 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
48 # although not all choices may be available on all operating systems.
49 # If running in a Windows environment this must be set to the same as your
51 TIME_ZONE
= 'America/Chicago'
53 # Language code for this installation. All choices can be found here:
54 # http://www.i18nguy.com/unicode/language-identifiers.html
55 LANGUAGE_CODE
= 'en-us'
59 # If you set this to False, Django will make some optimizations so as not
60 # to load the internationalization machinery.
63 # Absolute path to the directory that holds media.
64 # Example: "/home/media/media.lawrence.com/"
67 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
68 # trailing slash if there is a path component (optional in other cases).
69 # Examples: "http://media.lawrence.com", "http://example.com/media/"
72 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
74 # Examples: "http://foo.com/media/", "/media/".
75 ADMIN_MEDIA_PREFIX
= '/media/'
77 # Make this unique, and don't share it with anybody.
78 SECRET_KEY
= 'ieynq&un)ar73!trn!31@_r8=uv8%va_wv-ehu54p-hg9m4cs4'
80 # List of callables that know how to import templates from various sources.
82 'django.template.loaders.filesystem.load_template_source',
83 'django.template.loaders.app_directories.load_template_source',
84 # 'django.template.loaders.eggs.load_template_source',
87 MIDDLEWARE_CLASSES
= (
88 'django.middleware.common.CommonMiddleware',
89 'django.contrib.sessions.middleware.SessionMiddleware',
90 'django.contrib.auth.middleware.AuthenticationMiddleware',
91 'django.middleware.doc.XViewMiddleware',
94 ROOT_URLCONF
= 'bcms.urls'
96 TEMPLATE_DIRS
= (os
.path
.join(APP_ROOT
, 'templates'),
97 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
98 # Always use forward slashes, even on Windows.
99 # Don't forget to use absolute paths, not relative paths.
103 'django.contrib.auth',
104 'django.contrib.contenttypes',
105 'django.contrib.sessions',
106 'django.contrib.sites',
107 'django.contrib.admin',