1 # Copyright 2008 the Melange authors.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 """Module containing Melange Django settings.
19 '"Augie Fackler" <durin42@gmail.com>',
20 '"Pawel Solyga" <pawel.solyga@gmail.com>',
25 # Debug flag True only on App Engine development environment (dev_appserver.py)
26 # dev_appserver sets SERVER_SOFTWARE to 'Development/1.0'
27 DEBUG
= os
.environ
['SERVER_SOFTWARE'].startswith('Dev')
28 TEMPLATE_DEBUG
= DEBUG
31 # ('Your Name', 'your_email@domain.com'),
36 # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
37 DATABASE_ENGINE
= 'dummy'
38 # None of the following are used with appengine
39 DATABASE_NAME
= '' # Or path to database file if using sqlite3.
40 DATABASE_USER
= '' # Not used with sqlite3.
41 DATABASE_PASSWORD
= '' # Not used with sqlite3.
42 # Set to empty string for localhost. Not used with sqlite3.
44 # Set to empty string for default. Not used with sqlite3.
47 # Local time zone for this installation. Choices can be found here:
48 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
49 # although not all choices may be available on all operating systems.
50 # If running in a Windows environment this must be set to the same as your
54 # Language code for this installation. All choices can be found here:
55 # http://www.i18nguy.com/unicode/language-identifiers.html
56 LANGUAGE_CODE
= 'en-us'
60 # If you set this to False, Django will make some optimizations so as not
61 # to load the internationalization machinery.
64 # Absolute path to the directory that holds media.
65 # Example: "/home/media/media.lawrence.com/"
68 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
69 # trailing slash if there is a path component (optional in other cases).
70 # Examples: "http://media.lawrence.com", "http://example.com/media/"
73 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
75 # Examples: "http://foo.com/media/", "/media/".
76 ADMIN_MEDIA_PREFIX
= '/media/'
78 # TODO Make this unique, and don't share it with anybody.
79 SECRET_KEY
= 'hvhxfm5u=^*v&doo#oq8x*eg8+1&9sxbye@=umutgn^t_sg_nx'
81 # List of callables that know how to import templates from various sources.
83 'django.template.loaders.filesystem.load_template_source',
84 'django.template.loaders.app_directories.load_template_source',
85 # 'django.template.loaders.eggs.load_template_source',
88 MIDDLEWARE_CLASSES
= (
89 # 'django.middleware.common.CommonMiddleware',
90 # 'django.contrib.sessions.middleware.SessionMiddleware',
91 # 'django.contrib.auth.middleware.AuthenticationMiddleware',
92 # 'django.middleware.doc.XViewMiddleware',
97 ROOT_PATH
= os
.path
.dirname(__file__
)
99 # TODO(proto): customize the template search directories
100 os
.path
.join(ROOT_PATH
, 'ghop', 'templates'),
101 os
.path
.join(ROOT_PATH
, 'gsoc', 'templates'),
102 os
.path
.join(ROOT_PATH
, 'soc', 'templates'),
107 # 'django.contrib.auth',
108 # 'django.contrib.contenttypes',
109 # 'django.contrib.sessions',
110 # 'django.contrib.sites',