Mercurial > public > sg101
comparison gpp/settings/base.py @ 514:6d816aa586c1
Minor tweaks to base settings.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 13 Dec 2011 02:37:50 +0000 |
parents | 9e7ae8462f3f |
children | ae89ba801e8b |
comparison
equal
deleted
inserted
replaced
513:9e7ae8462f3f | 514:6d816aa586c1 |
---|---|
201 # Celery integration & settings | 201 # Celery integration & settings |
202 ####################################################################### | 202 ####################################################################### |
203 BROKER_URL = 'redis://localhost:6379/1' | 203 BROKER_URL = 'redis://localhost:6379/1' |
204 BROKER_POOL_LIMIT = 10 | 204 BROKER_POOL_LIMIT = 10 |
205 | 205 |
206 CELERY_IGNORE_RESULT = False | 206 CELERY_IGNORE_RESULT = True |
207 CELERY_RESULT_BACKEND = 'redis' | 207 CELERY_RESULT_BACKEND = 'redis' |
208 CELERY_REDIS_HOST = 'localhost' | 208 CELERY_REDIS_HOST = 'localhost' |
209 CELERY_REDIS_PORT = 6379 | 209 CELERY_REDIS_PORT = 6379 |
210 CELERY_REDIS_DB = 1 | 210 CELERY_REDIS_DB = 1 |
211 | 211 |
215 djcelery.setup_loader() | 215 djcelery.setup_loader() |
216 | 216 |
217 ####################################################################### | 217 ####################################################################### |
218 # GPP Specific Settings | 218 # GPP Specific Settings |
219 ####################################################################### | 219 ####################################################################### |
220 GPP_LOG_LEVEL = 0 | |
221 GPP_SEND_EMAIL = True | 220 GPP_SEND_EMAIL = True |
222 GPP_NO_REPLY_EMAIL = 'no_reply' | 221 GPP_NO_REPLY_EMAIL = 'no_reply' |
223 AVATAR_DIR = 'avatars' | 222 AVATAR_DIR = 'avatars' |
224 MAX_AVATAR_SIZE_BYTES = 2 * 1024 * 1024 | 223 MAX_AVATAR_SIZE_BYTES = 2 * 1024 * 1024 |
225 MAX_AVATAR_SIZE_PIXELS = 100 | 224 MAX_AVATAR_SIZE_PIXELS = 100 |
242 # GCalendar settings | 241 # GCalendar settings |
243 GCAL_CALENDAR_ID = 'i81lu3fkh57sgqqenogefd9v78@group.calendar.google.com' | 242 GCAL_CALENDAR_ID = 'i81lu3fkh57sgqqenogefd9v78@group.calendar.google.com' |
244 | 243 |
245 # Google OAuth settings | 244 # Google OAuth settings |
246 GOOGLE_OAUTH_CONSUMER_KEY = 'surfguitar101.com' | 245 GOOGLE_OAUTH_CONSUMER_KEY = 'surfguitar101.com' |
247 GOOGLE_OAUTH_PRIVATE_KEY_PATH = '/home/brian/google/myrsakey.pem' | 246 GOOGLE_OAUTH_PRIVATE_KEY_PATH = SECRETS['GOOGLE_KEY_PATH'] |
248 | 247 |
249 ####################################################################### | 248 ####################################################################### |
250 # Asynchronous settings (queues, queued_search, redis, celery, etc) | 249 # Asynchronous settings (queues, queued_search, redis, celery, etc) |
251 ####################################################################### | 250 ####################################################################### |
252 QUEUE_BACKEND = 'redisd' | 251 QUEUE_BACKEND = 'redisd' |