source: treasury/settings.py @ 7874f6a

client
Last change on this file since 7874f6a was 13a23ce, checked in by Alex Dehnert <adehnert@…>, 15 years ago

Bunch of work on the accounting system

  • Property mode set to 100644
File size: 2.9 KB
Line 
1# Django settings for treasury project.
2import os
3
4APP_ROOT = os.path.dirname(__file__)
5DEFAULT_DOMAIN = 'mit.edu'
6
7DEBUG = True
8TEMPLATE_DEBUG = DEBUG
9
10ADMINS = (
11    ('Alex Dehnert', 'adehnert@mit.edu'),
12)
13
14MANAGERS = ADMINS
15
16DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
17DATABASE_NAME = 'treasury.sqlite'             # Or path to database file if using sqlite3.
18DATABASE_USER = ''             # Not used with sqlite3.
19DATABASE_PASSWORD = ''         # Not used with sqlite3.
20DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
21DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
22
23# Local time zone for this installation. Choices can be found here:
24# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
25# although not all choices may be available on all operating systems.
26# If running in a Windows environment this must be set to the same as your
27# system time zone.
28TIME_ZONE = 'America/Chicago'
29
30# Language code for this installation. All choices can be found here:
31# http://www.i18nguy.com/unicode/language-identifiers.html
32LANGUAGE_CODE = 'en-us'
33
34SITE_ID = 1
35
36# If you set this to False, Django will make some optimizations so as not
37# to load the internationalization machinery.
38USE_I18N = True
39
40# Absolute path to the directory that holds media.
41# Example: "/home/media/media.lawrence.com/"
42MEDIA_ROOT = ''
43
44# URL that handles the media served from MEDIA_ROOT. Make sure to use a
45# trailing slash if there is a path component (optional in other cases).
46# Examples: "http://media.lawrence.com", "http://example.com/media/"
47MEDIA_URL = ''
48
49# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
50# trailing slash.
51# Examples: "http://foo.com/media/", "/media/".
52ADMIN_MEDIA_PREFIX = '/media/'
53
54# Make this unique, and don't share it with anybody.
55SECRET_KEY = '_poit_qs6s#!63a5pqn7nqa4q90eaupr6^@=u(symfvlz2c)n&'
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)
69
70ROOT_URLCONF = 'treasury.urls'
71
72TEMPLATE_DIRS = (
73    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
74    # Always use forward slashes, even on Windows.
75    # Don't forget to use absolute paths, not relative paths.
76    APP_ROOT + '/templates/',
77)
78
79INSTALLED_APPS = (
80    'django.contrib.admin',
81    'django.contrib.admindocs',
82    'django.contrib.auth',
83    'django.contrib.contenttypes',
84    'django.contrib.sessions',
85    'django.contrib.sites',
86    'treebeard',
87    'vouchers',
88)
Note: See TracBrowser for help on using the repository browser.