Skip to content
Newer
Older
100644 123 lines (100 sloc) 4.04 KB
82da31f @adamjernst Initial code, taken from Princeton09.com
authored
1 # Django settings for Class project.
2 import os
3 PROJECT_PATH = os.path.realpath(os.path.dirname(__file__))
4 gettext = lambda s: s
e08d8ba @adamjernst Change ROOT_URLCONF and switch into debug mode.
authored
5 DEBUG = True
82da31f @adamjernst Initial code, taken from Princeton09.com
authored
6 TEMPLATE_DEBUG = DEBUG
7
8 ADMINS = (
9 # ('Your Name', 'your_email@domain.com'),
10 )
11
12 MANAGERS = ADMINS
13
14 DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
15 DATABASE_NAME = os.path.join(PROJECT_PATH, 'cms.sqlite') # Or path to database file if using sqlite3.
16 DATABASE_USER = '' # Not used with sqlite3.
17 DATABASE_PASSWORD = '' # Not used with sqlite3.
18 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
19 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
20
21 # Local time zone for this installation. Choices can be found here:
22 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
23 # although not all choices may be available on all operating systems.
24 # If running in a Windows environment this must be set to the same as your
25 # system time zone.
26 TIME_ZONE = 'America/Chicago'
27
28 # Language code for this installation. All choices can be found here:
29 # http://www.i18nguy.com/unicode/language-identifiers.html
30 LANGUAGE_CODE = 'en-us'
31
32 LANGUAGES = (
33 ('en', gettext('English')),
34 )
35
36 SITE_ID = 1
37
38 # If you set this to False, Django will make some optimizations so as not
39 # to load the internationalization machinery.
40 USE_I18N = True
41
42 # Absolute path to the directory that holds media.
43 # Example: "/home/media/media.lawrence.com/"
44 MEDIA_ROOT = os.path.join(PROJECT_PATH, 'media')
45
46 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
47 # trailing slash if there is a path component (optional in other cases).
48 # Examples: "http://media.lawrence.com", "http://example.com/media/"
49 MEDIA_URL = '/media/'
50
51 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
52 # trailing slash.
53 # Examples: "http://foo.com/media/", "/media/".
54 ADMIN_MEDIA_PREFIX = '/media/admin/'
55
56 # Make this unique, and don't share it with anybody.
57 SECRET_KEY = '9_*%b0#16ntd%b&z+&4xc-k&w0*y@gvsr08zfh@k!_#vp8nna&'
58
59 # List of callables that know how to import templates from various sources.
60 TEMPLATE_LOADERS = (
61 'django.template.loaders.filesystem.load_template_source',
62 'django.template.loaders.app_directories.load_template_source',
63 'django.template.loaders.eggs.load_template_source',
64 )
65
66 MIDDLEWARE_CLASSES = (
67 'django.middleware.common.CommonMiddleware',
68 'django.contrib.sessions.middleware.SessionMiddleware',
69 'django.contrib.auth.middleware.AuthenticationMiddleware',
70
71 # needed for add/edit page
72 'django.middleware.locale.LocaleMiddleware',
73 'django.contrib.sessions.middleware.SessionMiddleware',
74 'django.contrib.auth.middleware.AuthenticationMiddleware',
75
76 'cms.middleware.page.CurrentPageMiddleware',
77 'cms.middleware.user.CurrentUserMiddleware',
78 )
79
e23c613 @adamjernst Countdown timer app
authored
80 ROOT_URLCONF = '2010.urls'
82da31f @adamjernst Initial code, taken from Princeton09.com
authored
81
82 TEMPLATE_DIRS = os.path.join(PROJECT_PATH, 'templates')
83 # (templates being the name of my template dir within project-name)
84
85 INSTALLED_APPS = (
86 'django.contrib.auth',
87 'django.contrib.contenttypes',
88 'django.contrib.sessions',
89 'django.contrib.admin',
90 'django.contrib.sites',
91 'cms',
92 'cms.plugins.text',
93 'cms.plugins.picture',
94 'cms.plugins.link',
95 'cms.plugins.file',
96 'cms.plugins.snippet',
97 'cms.plugins.googlemap',
98 'mptt',
99 'publisher',
e23c613 @adamjernst Countdown timer app
authored
100 'reversion',
224aff9 @adamjernst Class dues link
authored
101 '2010.countdowntimer',
f6cd6e2 @adamjernst Remove paypal as a built in module
authored
102 'paypal.standard.ipn',
82da31f @adamjernst Initial code, taken from Princeton09.com
authored
103 )
104
105 TEMPLATE_CONTEXT_PROCESSORS = (
106 "django.core.context_processors.auth",
107 "django.core.context_processors.i18n",
108 "django.core.context_processors.request",
109 "django.core.context_processors.media",
110 "cms.context_processors.media",
224aff9 @adamjernst Class dues link
authored
111 "2010.context_processors.class_dues"
82da31f @adamjernst Initial code, taken from Princeton09.com
authored
112 )
113
114 CMS_TEMPLATES = (
e23c613 @adamjernst Countdown timer app
authored
115 ('onecol.html', 'one column'),
211f6ac @adamjernst Reunions and images
authored
116 ('blogs.html', 'blog list'),
117 ('reunions.html', 'reunions'),
82da31f @adamjernst Initial code, taken from Princeton09.com
authored
118 )
224aff9 @adamjernst Class dues link
authored
119
211f6ac @adamjernst Reunions and images
authored
120 PAYPAL_RECEIVER_EMAIL = 'princetonclassof2010@gmail.com'
224aff9 @adamjernst Class dues link
authored
121 PAYPAL_IMAGE = 'http://www.paypal.com/en_US/i/btn/btn_paynow_LG.gif'
122 PAYPAL_SANDBOX_IMAGE = 'http://www.paypal.com/en_US/i/btn/btn_paynow_LG.gif'
Something went wrong with that request. Please try again.