source: treasury/settings.py @ 5989f2f

client
Last change on this file since 5989f2f was cafab4c, checked in by Alex Dehnert <adehnert@…>, 16 years ago

Serve static media

  • Property mode set to 100644
File size: 3.2 KB
Line 
1# Django settings for treasury project.
2import os
3
4SITE_ROOT = os.path.normpath(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 = SITE_ROOT + '/media/'
43print "MEDIA_ROOT='%s'" % (MEDIA_ROOT, )
44
45# URL that handles the media served from MEDIA_ROOT. Make sure to use a
46# trailing slash if there is a path component (optional in other cases).
47# Examples: "http://media.lawrence.com", "http://example.com/media/"
48MEDIA_URL = '/media/'
49
50# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
51# trailing slash.
52# Examples: "http://foo.com/media/", "/media/".
53ADMIN_MEDIA_PREFIX = '/media/admin/'
54
55# Make this unique, and don't share it with anybody.
56SECRET_KEY = '_poit_qs6s#!63a5pqn7nqa4q90eaupr6^@=u(symfvlz2c)n&'
57
58# List of callables that know how to import templates from various sources.
59TEMPLATE_LOADERS = (
60    'django.template.loaders.filesystem.load_template_source',
61    'django.template.loaders.app_directories.load_template_source',
62#     'django.template.loaders.eggs.load_template_source',
63)
64
65MIDDLEWARE_CLASSES = (
66    'django.middleware.common.CommonMiddleware',
67    'django.contrib.sessions.middleware.SessionMiddleware',
68    'django.contrib.auth.middleware.AuthenticationMiddleware',
69    #http://docs.djangoproject.com/en/dev/howto/auth-remote-user/
70    'django.contrib.auth.middleware.RemoteUserMiddleware',
71)
72
73ROOT_URLCONF = 'treasury.urls'
74
75TEMPLATE_DIRS = (
76    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
77    # Always use forward slashes, even on Windows.
78    # Don't forget to use absolute paths, not relative paths.
79    SITE_ROOT + '/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.