Added ccTld property to role to retrieve the ccTld of the country of residence for...
[Melange.git] / app / settings.py
blobd561032169a5af63fd13fb0b3fe4379107bac3d2
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.
16 """
18 __authors__ = [
19 '"Augie Fackler" <durin42@gmail.com>',
20 '"Pawel Solyga" <pawel.solyga@gmail.com>',
23 import os
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
30 ADMINS = (
31 # ('Your Name', 'your_email@domain.com'),
34 MANAGERS = ADMINS
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.
43 DATABASE_HOST = ''
44 # Set to empty string for default. Not used with sqlite3.
45 DATABASE_PORT = ''
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
51 # system time zone.
52 TIME_ZONE = 'UTC'
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'
58 SITE_ID = 1
60 # If you set this to False, Django will make some optimizations so as not
61 # to load the internationalization machinery.
62 USE_I18N = True
64 # Absolute path to the directory that holds media.
65 # Example: "/home/media/media.lawrence.com/"
66 MEDIA_ROOT = ''
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/"
71 MEDIA_URL = ''
73 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
74 # trailing slash.
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.
82 TEMPLATE_LOADERS = (
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',
95 ROOT_URLCONF = 'urls'
97 ROOT_PATH = os.path.dirname(__file__)
98 TEMPLATE_DIRS = (
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'),
105 INSTALLED_APPS = (
106 'soc.views.helper',
107 # 'django.contrib.auth',
108 # 'django.contrib.contenttypes',
109 # 'django.contrib.sessions',
110 # 'django.contrib.sites',