2012-05-07 19:05:58 +00:00
|
|
|
from regluit.settings.common import *
|
|
|
|
|
|
|
|
DEBUG = False
|
|
|
|
TEMPLATE_DEBUG = DEBUG
|
|
|
|
|
2012-05-07 19:06:59 +00:00
|
|
|
SITE_ID = 5
|
2012-05-07 19:05:58 +00:00
|
|
|
|
|
|
|
ADMINS = (
|
|
|
|
('Raymond Yee', 'rdhyee+ungluebugs@gluejar.com'),
|
|
|
|
('Eric Hellman', 'eric@gluejar.com'),
|
|
|
|
)
|
|
|
|
|
|
|
|
MANAGERS = ADMINS
|
|
|
|
|
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
|
|
|
'ENGINE': 'django.db.backends.mysql',
|
|
|
|
'NAME': 'unglueit',
|
|
|
|
'USER': 'root',
|
|
|
|
'PASSWORD': 'forgetn0t',
|
|
|
|
'HOST': 'justdb.cboagmr25pjs.us-east-1.rds.amazonaws.com',
|
|
|
|
'PORT': '',
|
2012-10-01 17:05:03 +00:00
|
|
|
'TEST_CHARSET': 'utf8',
|
|
|
|
'TEST_COLLATION': 'utf8_bin'
|
2012-05-07 19:05:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
TIME_ZONE = 'America/New_York'
|
|
|
|
SECRET_KEY = '_^_off!8zsj4+)%qq623m&$7_m-q$iau5le0w!mw&n5tgt#x=t'
|
|
|
|
|
|
|
|
# settings for outbout email
|
|
|
|
# if you have a gmail account you can use your email address and password
|
|
|
|
|
2012-06-22 23:38:29 +00:00
|
|
|
#EMAIL_USE_TLS = True
|
|
|
|
#EMAIL_HOST = 'smtp.gmail.com'
|
|
|
|
#EMAIL_HOST_USER = 'accounts@gluejar.com'
|
|
|
|
#EMAIL_HOST_PASSWORD = '7k3sWyzHpI'
|
|
|
|
#EMAIL_PORT = 587
|
|
|
|
#DEFAULT_FROM_EMAIL = 'accounts@gluejar.com'
|
|
|
|
|
|
|
|
# testing out using Amazon SES
|
|
|
|
|
|
|
|
EMAIL_BACKEND = 'django_smtp_ssl.SSLEmailBackend'
|
|
|
|
MAIL_USE_TLS = True
|
|
|
|
EMAIL_HOST = 'email-smtp.us-east-1.amazonaws.com'
|
|
|
|
EMAIL_HOST_USER = 'AKIAJXM4QX324HXCH54Q'
|
|
|
|
EMAIL_HOST_PASSWORD = 'AgR9hVmSSOhetuLOnbFEFo9PTnL9iAM/52NOPGkS3Rwh'
|
|
|
|
EMAIL_PORT = 465
|
|
|
|
DEFAULT_FROM_EMAIL = 'notices@gluejar.com'
|
2012-05-07 19:05:58 +00:00
|
|
|
|
2013-07-02 14:24:18 +00:00
|
|
|
# googlebooks
|
|
|
|
# key created by rdhyee@gluejar.com 2013/07/02
|
|
|
|
GOOGLE_BOOKS_API_KEY = 'AIzaSyBPZS7D3QvypGN_Tqc3blAXV1iJJJuu4mk'
|
2012-05-07 19:05:58 +00:00
|
|
|
|
|
|
|
# twitter auth
|
|
|
|
TWITTER_CONSUMER_KEY = 'sd9StEg1N1qB8gGb2GRX4A'
|
|
|
|
TWITTER_CONSUMER_SECRET = 'YSKHn8Du6EWqpcWZ6sp5tqDPvcOBXK0WJWVGWyB0'
|
|
|
|
|
|
|
|
# facebook auth
|
|
|
|
FACEBOOK_APP_ID = '242881179080779'
|
|
|
|
FACEBOOK_API_SECRET = '5eae483a0e92113d884c427b578ef23a'
|
|
|
|
|
2015-04-08 02:55:30 +00:00
|
|
|
# get these (as oauth2 client ID and Secret from
|
|
|
|
# https://console.developers.google.com/project/569579163337/apiui/credential?authuser=1
|
|
|
|
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = '569579163337-kq3vm5imdap4hapj1r8lvmcg05kfi6ii.apps.googleusercontent.com'
|
|
|
|
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = 'IYmgelotf77H8OPWX8oXf4Cq'
|
2012-05-07 19:05:58 +00:00
|
|
|
|
|
|
|
# credentials from a sandbox account that Raymond set up.
|
|
|
|
PAYPAL_USERNAME = 'glueja_1317336101_biz_api1.gluejar.com'
|
|
|
|
PAYPAL_PASSWORD = '1317336137'
|
|
|
|
PAYPAL_SIGNATURE = 'AHVb0D1mzGD6zdX4XtKZbH.Kd6OhALVyiJVbNReOZEfyz79AoEnQJWTR'
|
|
|
|
PAYPAL_APPID = 'APP-80W284485P519543T' # sandbox app id -- will have to replace with production id
|
|
|
|
|
|
|
|
PAYPAL_ENDPOINT = 'svcs.sandbox.paypal.com' # sandbox
|
|
|
|
PAYPAL_PAYMENT_HOST = 'https://www.sandbox.paypal.com' # sandbox
|
|
|
|
|
|
|
|
PAYPAL_SANDBOX_LOGIN = ''
|
|
|
|
PAYPAL_SANDBOX_PASSWORD = ''
|
|
|
|
|
|
|
|
PAYPAL_BUYER_LOGIN =''
|
|
|
|
PAYPAL_BUYER_PASSWORD = ''
|
|
|
|
|
|
|
|
# in live system, replace with the real Gluejar paypal email and that for our non-profit partner
|
|
|
|
PAYPAL_GLUEJAR_EMAIL = "glueja_1317336101_biz@gluejar.com"
|
|
|
|
PAYPAL_NONPROFIT_PARTNER_EMAIL = "nppart_1318957063_per@gluejar.com"
|
|
|
|
|
|
|
|
# for test purposes have a single RH paypal email
|
|
|
|
PAYPAL_TEST_RH_EMAIL = "rh1_1317336251_biz@gluejar.com"
|
|
|
|
|
|
|
|
# Goodreads API
|
|
|
|
GOODREADS_API_KEY = "vfqIO6QAhBVvlxt6hAzZJg"
|
|
|
|
GOODREADS_API_SECRET = "57tq4MpyJ15Hgm2ToZQQFWJ7vraZzOAqHLckWRXQ"
|
|
|
|
|
|
|
|
# Freebase credentials
|
|
|
|
FREEBASE_USERNAME = ''
|
|
|
|
FREEBASE_PASSWORD = ''
|
|
|
|
|
|
|
|
# send celery log to Python logging
|
|
|
|
CELERYD_HIJACK_ROOT_LOGGER = False
|
|
|
|
|
|
|
|
# BASE_URL is a hard-coding of the domain name for site and used for PayPal IPN
|
|
|
|
# Next step to try https
|
2013-09-11 17:43:49 +00:00
|
|
|
BASE_URL = 'http://just.unglue.it'
|
|
|
|
BASE_URL_SECURE = 'https://just.unglue.it'
|
2012-05-16 00:12:58 +00:00
|
|
|
IPN_SECURE_URL = False
|
2012-05-07 19:05:58 +00:00
|
|
|
|
|
|
|
# use redis for production queue
|
|
|
|
BROKER_TRANSPORT = "redis"
|
|
|
|
BROKER_HOST = "localhost"
|
|
|
|
BROKER_PORT = 6379
|
|
|
|
BROKER_VHOST = "0"
|
|
|
|
|
|
|
|
LOGGING = {
|
|
|
|
'version': 1,
|
|
|
|
'disable_existing_loggers': True,
|
|
|
|
'handlers': {
|
|
|
|
'mail_admins': {
|
|
|
|
'level': 'ERROR',
|
|
|
|
'class': 'django.utils.log.AdminEmailHandler'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'loggers': {
|
|
|
|
'django.request': {
|
|
|
|
'handlers': ['mail_admins'],
|
|
|
|
'level': 'ERROR',
|
|
|
|
'propagate': True,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
STATIC_ROOT = '/var/www/static'
|
2013-02-11 19:18:16 +00:00
|
|
|
#CKEDITOR_UPLOAD_PATH = '/var/www/static/media/'
|
|
|
|
#CKEDITOR_UPLOAD_PREFIX = 'https://just.unglue.it/static/media/'
|
2012-05-07 19:05:58 +00:00
|
|
|
|
|
|
|
IS_PREVIEW = False
|
|
|
|
|
|
|
|
# decide which of the period tasks to add to the schedule
|
2014-10-10 19:39:43 +00:00
|
|
|
CELERYBEAT_SCHEDULE['send_test_email'] = SEND_TEST_EMAIL_JOB
|
2012-05-07 19:05:58 +00:00
|
|
|
CELERYBEAT_SCHEDULE['report_new_ebooks'] = EBOOK_NOTIFICATIONS_JOB
|
|
|
|
|
2013-11-12 14:40:34 +00:00
|
|
|
# doing emit_notifications in crontab right now
|
|
|
|
#CELERYBEAT_SCHEDULE['emit_notifications'] = EMIT_NOTIFICATIONS_JOB
|
2012-05-07 19:05:58 +00:00
|
|
|
|
2013-03-04 18:29:53 +00:00
|
|
|
CELERYBEAT_SCHEDULE['update_account_statuses'] = UPDATE_ACCOUNT_STATUSES
|
2013-03-04 19:19:13 +00:00
|
|
|
CELERYBEAT_SCHEDULE['notify_expiring_accounts'] = NOTIFY_EXPIRING_ACCOUNTS
|
2013-11-08 17:13:34 +00:00
|
|
|
CELERYBEAT_SCHEDULE['refresh_acqs'] = REFRESH_ACQS_JOB
|
|
|
|
|
2012-05-10 16:03:10 +00:00
|
|
|
|
|
|
|
# set -- sandbox or production Amazon FPS?
|
|
|
|
AMAZON_FPS_HOST = "fps.sandbox.amazonaws.com"
|
|
|
|
#AMAZON_FPS_HOST = "fps.amazonaws.com"
|
2012-05-07 19:05:58 +00:00
|
|
|
|
2012-05-17 20:56:44 +00:00
|
|
|
# local settings for maintenance mode
|
|
|
|
MAINTENANCE_MODE = False
|
|
|
|
|
2013-02-11 18:47:03 +00:00
|
|
|
# Amazon keys to permit S3 access
|
|
|
|
|
|
|
|
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
|
|
|
|
AWS_ACCESS_KEY_ID = 'AKIAIYP6XRVAUWKQFT5Q'
|
|
|
|
AWS_SECRET_ACCESS_KEY = 'Gny4eOublzKgJm8wupM6D3s1HFh1X5vr9ITfVy5n'
|
2014-02-19 23:16:17 +00:00
|
|
|
AWS_STORAGE_BUCKET_NAME = 'just-unglueit'
|
2012-05-17 20:56:44 +00:00
|
|
|
|
2012-05-07 19:05:58 +00:00
|
|
|
# if settings/local.py exists, import those settings -- allows for dynamic generation of parameters such as DATABASES
|
|
|
|
try:
|
|
|
|
from regluit.settings.local import *
|
|
|
|
except ImportError:
|
|
|
|
pass
|