tag: git
[openlease.git] / src / openlease / settings.py
blob8e1ba24d5376c7cfa7277bc9a9e868889f4d0c74
1 '''
2 Django settings for openlease project.
3 '''
4 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 # Open Lease
9 # open source rental property management software
11 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12 # (c) 2007 Jason McVetta
14 # This is Free Software. It is realeased under the GNU Affero General Public
15 # License (version 3). See http://www.fsf.org/licensing/licenses/agpl-3.0.html
16 # for more information.
17 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 # homepage: http://openlease.org
19 # maintainer: jason.mcvetta@gmail.com
20 # public git repository: http://repo.or.cz/w/openlease.git
21 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26 DEBUG = True
27 TEMPLATE_DEBUG = DEBUG
29 ADMINS = (
30 # ('Jason McVetta', 'jason.mcvetta@gmail.com'),
33 MANAGERS = ADMINS
35 DATABASE_ENGINE = 'postgresql_psycopg2' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
36 DATABASE_NAME = 'openlease' # Or path to database file if using sqlite3.
37 DATABASE_USER = 'openlease' # Not used with sqlite3.
38 DATABASE_PASSWORD = 'jessicayu' # Not used with sqlite3.
39 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
40 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
42 # Local time zone for this installation. Choices can be found here:
43 # http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
44 # although not all variations may be possible on all operating systems.
45 # If running in a Windows environment this must be set to the same as your
46 # system time zone.
47 TIME_ZONE = 'America/Chicago'
49 # Language code for this installation. All choices can be found here:
50 # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
51 # http://blogs.law.harvard.edu/tech/stories/storyReader$15
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.
65 # Example: "http://media.lawrence.com"
66 MEDIA_URL = ''
68 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
69 # trailing slash.
70 # Examples: "http://foo.com/media/", "/media/".
71 ADMIN_MEDIA_PREFIX = '/media/'
73 # Make this unique, and don't share it with anybody.
74 SECRET_KEY = 'd1s5@8ls4qet%4&&h*$r@h9nk8k6251zzph&ahpvkpuiarqek^'
76 # List of callables that know how to import templates from various sources.
77 TEMPLATE_LOADERS = (
78 'django.template.loaders.filesystem.load_template_source',
79 'django.template.loaders.app_directories.load_template_source',
80 # 'django.template.loaders.eggs.load_template_source',
83 MIDDLEWARE_CLASSES = (
84 'django.middleware.common.CommonMiddleware',
85 'django.contrib.sessions.middleware.SessionMiddleware',
86 'django.contrib.auth.middleware.AuthenticationMiddleware',
87 'django.middleware.doc.XViewMiddleware',
90 ROOT_URLCONF = 'openlease.urls'
92 TEMPLATE_DIRS = (
93 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
94 # Always use forward slashes, even on Windows.
95 # Don't forget to use absolute paths, not relative paths.
98 INSTALLED_APPS = (
99 'django.contrib.auth',
100 'django.contrib.contenttypes',
101 'django.contrib.sessions',
102 'django.contrib.sites',
103 'openlease.core',