source: remit/settings.py @ 408cd14

client
Last change on this file since 408cd14 was 676ea4b, checked in by Alex Dehnert <adehnert@…>, 16 years ago

Remove SECRET_KEY from settings.py

  • Property mode set to 100644
File size: 3.1 KB
Line 
1# Django settings for treasury project.
2import os
3import sys
4
5SITE_ROOT = os.path.normpath(os.path.dirname(__file__))
6DEFAULT_DOMAIN = 'mit.edu'
7
8DEBUG = True
9TEMPLATE_DEBUG = DEBUG
10
11ADMINS = (
12    ('Remit team', 'remit@mit.edu'),
13)
14
15MANAGERS = ADMINS
16
17DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
18DATABASE_NAME = os.path.join(SITE_ROOT, 'treasury.sqlite')             # Or path to database file if using sqlite3.
19DATABASE_USER = ''             # Not used with sqlite3.
20DATABASE_PASSWORD = ''         # Not used with sqlite3.
21DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
22DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
23
24from local_settings import *
25
26# Local time zone for this installation. Choices can be found here:
27# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
28# although not all choices may be available on all operating systems.
29# If running in a Windows environment this must be set to the same as your
30# system time zone.
31TIME_ZONE = 'America/Chicago'
32
33# Language code for this installation. All choices can be found here:
34# http://www.i18nguy.com/unicode/language-identifiers.html
35LANGUAGE_CODE = 'en-us'
36
37SITE_ID = 1
38
39# If you set this to False, Django will make some optimizations so as not
40# to load the internationalization machinery.
41USE_I18N = True
42
43# Absolute path to the directory that holds media.
44# Example: "/home/media/media.lawrence.com/"
45MEDIA_ROOT = SITE_ROOT + '/media/'
46
47# URL that handles the media served from MEDIA_ROOT. Make sure to use a
48# trailing slash if there is a path component (optional in other cases).
49# Examples: "http://media.lawrence.com", "http://example.com/media/"
50MEDIA_URL = '/media/'
51
52# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
53# trailing slash.
54# Examples: "http://foo.com/media/", "/media/".
55ADMIN_MEDIA_PREFIX = '/media/admin/'
56
57# List of callables that know how to import templates from various sources.
58TEMPLATE_LOADERS = (
59    'django.template.loaders.filesystem.load_template_source',
60    'django.template.loaders.app_directories.load_template_source',
61#     'django.template.loaders.eggs.load_template_source',
62)
63
64MIDDLEWARE_CLASSES = (
65    'django.middleware.common.CommonMiddleware',
66    'django.contrib.sessions.middleware.SessionMiddleware',
67    'django.contrib.auth.middleware.AuthenticationMiddleware',
68    #http://docs.djangoproject.com/en/dev/howto/auth-remote-user/
69    'django.contrib.auth.middleware.RemoteUserMiddleware',
70)
71
72ROOT_URLCONF = 'remit.urls'
73
74TEMPLATE_DIRS = (
75    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
76    # Always use forward slashes, even on Windows.
77    # Don't forget to use absolute paths, not relative paths.
78    SITE_ROOT + '/templates/',
79    SITE_ROOT + '/remit_templates/',
80)
81
82INSTALLED_APPS = (
83    'django.contrib.admin',
84    'django.contrib.admindocs',
85    'django.contrib.auth',
86    'django.contrib.contenttypes',
87    'django.contrib.sessions',
88    'django.contrib.sites',
89    'treebeard',
90    'vouchers',
91    'finance_core',
92)
Note: See TracBrowser for help on using the repository browser.