comparison gpp/settings.py @ 35:f77a1cdd7a46

Donations: first cut at a donations view and a form built for paypal.
author Brian Neal <bgneal@gmail.com>
date Sun, 07 Jun 2009 00:22:50 +0000
parents c018872385ea
children 296b610ee507
comparison
equal deleted inserted replaced
34:d5d7e510ecd7 35:f77a1cdd7a46
1 # Django settings for gpp project. 1 # Django settings for gpp project.
2 2
3 import os 3 import os
4 import platform 4 import platform
5 import local_settings 5 import local_settings
6 from decimal import Decimal
7
6 project_path = os.path.abspath(os.path.split(__file__)[0]) 8 project_path = os.path.abspath(os.path.split(__file__)[0])
7 9
8 DEBUG = local_settings.DEBUG 10 DEBUG = local_settings.DEBUG
9 TEMPLATE_DEBUG = DEBUG 11 TEMPLATE_DEBUG = DEBUG
10 12
142 GPP_NO_REPLY_EMAIL = 'no_reply' 144 GPP_NO_REPLY_EMAIL = 'no_reply'
143 AVATAR_DIR = 'avatars' 145 AVATAR_DIR = 'avatars'
144 MAX_AVATAR_SIZE_BYTES = 2 * 1024 * 1024 146 MAX_AVATAR_SIZE_BYTES = 2 * 1024 * 1024
145 MAX_AVATAR_SIZE_PIXELS = 100 147 MAX_AVATAR_SIZE_PIXELS = 100
146 AVATAR_DEFAULT_URL = MEDIA_URL + AVATAR_DIR + '/default.png' 148 AVATAR_DEFAULT_URL = MEDIA_URL + AVATAR_DIR + '/default.png'
149 DONATIONS_ITEM_NAME = 'Donation for SurfGuitar101.com'
150 DONATIONS_BUSINESS = 'brian@surfguitar101.com'
151 DONATIONS_BUSINESS_DEBUG = 'brian@surfguitar101.com'
152 DONATIONS_GOAL = Decimal('100.00') # montly goal
153 DONATIONS_ANON_NAME = u'Anonymous'
154 DONATIONS_ITEM_NUM = 500 # donation w/name listed
155 DONATIONS_ITEM_ANON_NUM = 501 # donation listed as anonymous
147 156
148 # URL's of 3rd party Javascript and CSS files. 157 # URL's of 3rd party Javascript and CSS files.
149 # These dictionaries are used by core/templatetags/script_tags, and 158 # These dictionaries are used by core/templatetags/script_tags, and
150 # should also be used by developers when creating form media classes. 159 # should also be used by developers when creating form media classes.
151 GPP_THIRD_PARTY_JS = { 160 GPP_THIRD_PARTY_JS = {
183 'js/markitup/skins/markitup/style.css', 192 'js/markitup/skins/markitup/style.css',
184 'js/markitup/sets/markdown/style.css', 193 'js/markitup/sets/markdown/style.css',
185 ), 194 ),
186 } 195 }
187 196
188 # vim: ts=4 sw=4