Removed debug prints
[bcms.git] / settings.py
blob52e073f017b906b0eda0d7547db85860347a55a8
1 # BC CMS - Content Management System
2 # Copyright (c) 2008, Carlos Daniel Ruvalcaba Valenzuela
3 # All rights reserved.
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
15 # written permission.
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.
26 DEBUG = True
27 TEMPLATE_DEBUG = DEBUG
28 SERVE_FILES = True
30 ADMINS = (
31 # ('Your Name', 'your_email@domain.com'),
34 MANAGERS = ADMINS
36 DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
37 DATABASE_NAME = 'database.db' # Or path to database file if using sqlite3.
38 DATABASE_USER = '' # Not used with sqlite3.
39 DATABASE_PASSWORD = '' # Not used with sqlite3.
40 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
41 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
43 # Local time zone for this installation. Choices can be found here:
44 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
45 # although not all choices may be available on all operating systems.
46 # If running in a Windows environment this must be set to the same as your
47 # system time zone.
48 TIME_ZONE = 'America/Chicago'
50 # Language code for this installation. All choices can be found here:
51 # http://www.i18nguy.com/unicode/language-identifiers.html
52 LANGUAGE_CODE = 'en-us'
54 SITE_ID = 1
56 # If you set this to False, Django will make some optimizations so as not
57 # to load the internationalization machinery.
58 USE_I18N = True
60 # Absolute path to the directory that holds media.
61 # Example: "/home/media/media.lawrence.com/"
62 MEDIA_ROOT = ''
64 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
65 # trailing slash if there is a path component (optional in other cases).
66 # Examples: "http://media.lawrence.com", "http://example.com/media/"
67 MEDIA_URL = ''
69 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
70 # trailing slash.
71 # Examples: "http://foo.com/media/", "/media/".
72 ADMIN_MEDIA_PREFIX = '/media/'
74 # Make this unique, and don't share it with anybody.
75 SECRET_KEY = 'ieynq&un)ar73!trn!31@_r8=uv8%va_wv-ehu54p-hg9m4cs4'
77 # List of callables that know how to import templates from various sources.
78 TEMPLATE_LOADERS = (
79 'django.template.loaders.app_directories.load_template_source',
80 'django.template.loaders.filesystem.load_template_source',
81 # 'django.template.loaders.eggs.load_template_source',
84 MIDDLEWARE_CLASSES = (
85 'django.middleware.common.CommonMiddleware',
86 'django.contrib.sessions.middleware.SessionMiddleware',
87 'django.contrib.auth.middleware.AuthenticationMiddleware',
88 'django.middleware.doc.XViewMiddleware',
91 ROOT_URLCONF = 'bcms.urls'
93 FILE_UPLOAD_HANDLERS = ("django.core.files.uploadhandler.TemporaryFileUploadHandler",
94 "django.core.files.uploadhandler.MemoryFileUploadHandler",)
96 TEMPLATE_DIRS = (
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.
102 TEMPLATE_CONTEXT_PROCESSORS = (
103 "django.core.context_processors.auth",
104 "django.core.context_processors.debug",
105 "django.core.context_processors.i18n",
106 "django.core.context_processors.media"
109 INSTALLED_APPS = (
110 'django.contrib.auth',
111 'django.contrib.contenttypes',
112 'django.contrib.sessions',
113 'django.contrib.sites',
114 'django.contrib.admin',
115 'bcms',
116 'bcms.pages',