2011-08-31 03:46:55 +00:00
|
|
|
from regluit.settings.common import *
|
|
|
|
|
|
|
|
DEBUG = True
|
|
|
|
TEMPLATE_DEBUG = DEBUG
|
|
|
|
|
2012-01-15 19:56:26 +00:00
|
|
|
# if you're doing development work, you'll want this to be zero
|
2012-01-15 20:37:08 +00:00
|
|
|
IS_PREVIEW = False
|
2012-01-15 19:56:26 +00:00
|
|
|
|
2012-01-26 15:29:46 +00:00
|
|
|
# SITE_ID for your particular site -- must be configured in /core/fixtures/initial_data.json
|
|
|
|
SITE_ID = 3
|
|
|
|
|
2011-08-31 03:46:55 +00:00
|
|
|
ADMINS = (
|
2012-09-05 15:17:27 +00:00
|
|
|
('Raymond Yee', 'rdhyee+ungluebugs@gluejar.com'),
|
|
|
|
('Eric Hellman', 'eric@gluejar.com'),
|
2011-08-31 03:46:55 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
MANAGERS = ADMINS
|
|
|
|
|
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
|
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
|
|
'NAME': 'regluit.db',
|
|
|
|
'USER': '',
|
|
|
|
'PASSWORD': '',
|
|
|
|
'HOST': '',
|
|
|
|
'PORT': '',
|
2011-11-21 19:13:29 +00:00
|
|
|
'TEST_CHARSET': 'utf8',
|
2011-08-31 03:46:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
TIME_ZONE = 'America/New_York'
|
|
|
|
SECRET_KEY = '_^_off!8zsj4+)%qq623m&$7_m-q$iau5le0w!mw&n5tgt#x=t'
|
2011-09-04 05:04:04 +00:00
|
|
|
|
2011-09-06 01:50:55 +00:00
|
|
|
# settings for outbout email
|
|
|
|
# if you have a gmail account you can use your email address and password
|
|
|
|
|
2011-09-04 05:04:04 +00:00
|
|
|
EMAIL_USE_TLS = True
|
|
|
|
EMAIL_HOST = 'smtp.gmail.com'
|
|
|
|
EMAIL_HOST_USER = 'me@gmail.com'
|
|
|
|
EMAIL_HOST_PASSWORD = 'my-password'
|
|
|
|
EMAIL_PORT = 587
|
|
|
|
DEFAULT_FROM_EMAIL = 'info@gluejar.com'
|
2011-09-06 01:50:55 +00:00
|
|
|
|
|
|
|
# twitter auth
|
|
|
|
# you'll need to create a new Twitter application to fill in these blanks
|
|
|
|
# https://dev.twitter.com/apps/new
|
|
|
|
|
|
|
|
TWITTER_CONSUMER_KEY = ''
|
|
|
|
TWITTER_CONSUMER_SECRET = ''
|
|
|
|
|
|
|
|
# facebook auth
|
|
|
|
# you'll need to create a new Facebook application to fill in these blanks
|
|
|
|
# https://developers.facebook.com/apps/
|
|
|
|
|
|
|
|
FACEBOOK_APP_ID = ''
|
|
|
|
FACEBOOK_API_SECRET = ''
|
|
|
|
|
|
|
|
# google auth
|
|
|
|
# you'll need to create a new Google application to fill in these blanks
|
|
|
|
# https://code.google.com/apis/console/
|
2011-09-07 09:33:05 +00:00
|
|
|
GOOGLE_OAUTH2_CLIENT_ID = ''
|
|
|
|
GOOGLE_OAUTH2_CLIENT_SECRET = ''
|
2011-09-06 01:50:55 +00:00
|
|
|
GOOGLE_DISPLAY_NAME = 'unglue it!'
|
|
|
|
|
2011-09-07 09:33:05 +00:00
|
|
|
# you'll need to register a GoogleBooks API key
|
|
|
|
# https://code.google.com/apis/console
|
|
|
|
GOOGLE_BOOKS_API_KEY = ''
|
2011-10-04 11:55:39 +00:00
|
|
|
|
2012-04-18 15:53:13 +00:00
|
|
|
# Payment processor switch
|
2012-04-24 00:12:36 +00:00
|
|
|
PAYMENT_PROCESSOR = 'amazon'
|
|
|
|
|
|
|
|
# set -- sandbox or production Amazon FPS?
|
|
|
|
AMAZON_FPS_HOST = "fps.sandbox.amazonaws.com"
|
|
|
|
#AMAZON_FPS_HOST = "fps.amazonaws.com"
|
|
|
|
|
2011-10-04 11:55:39 +00:00
|
|
|
PAYPAL_USERNAME = ''
|
|
|
|
PAYPAL_PASSWORD = ''
|
|
|
|
PAYPAL_SIGNATURE = ''
|
|
|
|
PAYPAL_APPID = ''
|
|
|
|
|
|
|
|
PAYPAL_ENDPOINT = 'svcs.sandbox.paypal.com' # sandbox
|
|
|
|
PAYPAL_PAYMENT_HOST = 'http://www.sandbox.paypal.com' # sandbox
|
|
|
|
|
|
|
|
PAYPAL_SANDBOX_LOGIN = ''
|
|
|
|
PAYPAL_SANDBOX_PASSWORD = ''
|
|
|
|
|
|
|
|
PAYPAL_BUYER_LOGIN =''
|
|
|
|
PAYPAL_BUYER_PASSWORD = ''
|
|
|
|
|
2011-12-03 00:37:27 +00:00
|
|
|
# in live system, replace with the real Gluejar paypal email and that for our non-profit partner
|
2011-10-19 16:45:25 +00:00
|
|
|
PAYPAL_GLUEJAR_EMAIL = "glueja_1317336101_biz@gluejar.com"
|
2011-12-03 00:37:27 +00:00
|
|
|
PAYPAL_NONPROFIT_PARTNER_EMAIL = "nppart_1318957063_per@gluejar.com"
|
2011-10-14 02:16:28 +00:00
|
|
|
|
2011-10-18 23:27:20 +00:00
|
|
|
# for test purposes have a single RH paypal email
|
|
|
|
PAYPAL_TEST_RH_EMAIL = "rh1_1317336251_biz@gluejar.com"
|
|
|
|
|
2011-10-27 06:35:46 +00:00
|
|
|
BASE_URL = 'http://0.0.0.0'
|
2012-05-15 20:52:05 +00:00
|
|
|
BASE_URL_SECURE = 'https://0.0.0.0'
|
|
|
|
IPN_SECURE_URL = True
|
2011-10-20 03:31:16 +00:00
|
|
|
|
|
|
|
# use database as queuing service in development
|
|
|
|
BROKER_TRANSPORT = "djkombu.transport.DatabaseTransport"
|
|
|
|
INSTALLED_APPS += ("djkombu",)
|
2011-10-25 01:29:01 +00:00
|
|
|
|
|
|
|
# Goodreads API
|
|
|
|
GOODREADS_API_KEY = ''
|
|
|
|
GOODREADS_API_SECRET = ''
|
2011-11-06 12:55:07 +00:00
|
|
|
|
2011-11-16 18:20:10 +00:00
|
|
|
# LibraryThing API
|
|
|
|
LIBRARYTHING_API_KEY = ''
|
|
|
|
|
2011-11-06 12:55:07 +00:00
|
|
|
# Freebase credentials
|
|
|
|
FREEBASE_USERNAME = ''
|
|
|
|
FREEBASE_PASSWORD = ''
|
2011-11-06 23:32:43 +00:00
|
|
|
|
|
|
|
# send celery log to Python logging
|
|
|
|
CELERYD_HIJACK_ROOT_LOGGER = False
|
2011-11-16 18:20:10 +00:00
|
|
|
|
2011-11-16 21:00:51 +00:00
|
|
|
# a debug_toolbar setting
|
2011-11-21 19:13:29 +00:00
|
|
|
INTERNAL_IPS = ('127.0.0.1',)
|
2011-11-22 01:12:13 +00:00
|
|
|
|
2012-03-09 18:34:14 +00:00
|
|
|
CELERYD_LOG_LEVEL = "INFO"
|
|
|
|
|
|
|
|
# an optional setting to change regluit.utils.localdatetime._now -- setting it to None will cause
|
|
|
|
# a default _now() to be computed in regluit.utils.localdatetime
|
|
|
|
|
|
|
|
LOCALDATETIME_NOW = None
|
|
|
|
|
2012-03-14 22:06:29 +00:00
|
|
|
# selenium-related testing parameters
|
|
|
|
# in Django 1.4, we'll get a URL for LiveServerTestCase https://docs.djangoproject.com/en/dev/topics/testing/#django.test.LiveServerTestCase
|
|
|
|
# but for now, we would have to manually configure our own test server.
|
|
|
|
LIVE_SERVER_TEST_URL = "http://127.0.0.1:8000"
|
|
|
|
|
|
|
|
# username, password to pass to LIVE_SERVER_TEST_URL
|
|
|
|
|
|
|
|
UNGLUEIT_TEST_USER = None
|
|
|
|
UNGLUEIT_TEST_PASSWORD = None
|
|
|
|
|
2012-05-17 20:56:44 +00:00
|
|
|
# local settings for maintenance mode
|
|
|
|
MAINTENANCE_MODE = False
|
|
|
|
|
2012-04-05 20:54:46 +00:00
|
|
|
# decide which of the period tasks to add to the schedule
|
|
|
|
#CELERYBEAT_SCHEDULE['send_test_email'] = SEND_TEST_EMAIL_JOB
|
|
|
|
#CELERYBEAT_SCHEDULE['emit_notifications'] = EMIT_NOTIFICATIONS_JOB
|
2012-05-05 20:45:50 +00:00
|
|
|
CELERYBEAT_SCHEDULE['report_new_ebooks'] = EBOOK_NOTIFICATIONS_JOB
|
|
|
|
|
|
|
|
try:
|
|
|
|
from regluit.settings.local import *
|
|
|
|
except ImportError:
|
|
|
|
pass
|