2011-10-07 03:14:29 +00:00
|
|
|
from regluit.settings.common import *
|
|
|
|
|
2011-11-17 23:05:01 +00:00
|
|
|
DEBUG = False
|
2011-10-07 03:14:29 +00:00
|
|
|
TEMPLATE_DEBUG = DEBUG
|
2012-05-17 15:21:51 +00:00
|
|
|
# we are launched!
|
2012-10-15 15:08:06 +00:00
|
|
|
IS_PREVIEW = False
|
2011-10-07 03:14:29 +00:00
|
|
|
|
2012-01-15 23:24:09 +00:00
|
|
|
SITE_ID = 1
|
2011-12-28 17:28:48 +00:00
|
|
|
|
2011-10-07 03:14:29 +00:00
|
|
|
ADMINS = (
|
2011-10-17 18:06:11 +00:00
|
|
|
('Raymond Yee', 'rdhyee+ungluebugs@gluejar.com'),
|
2011-11-14 16:36:38 +00:00
|
|
|
('Eric Hellman', 'eric@gluejar.com'),
|
2011-10-07 03:14:29 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
MANAGERS = ADMINS
|
|
|
|
|
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
|
|
|
'ENGINE': 'django.db.backends.mysql',
|
2012-01-15 20:37:08 +00:00
|
|
|
'NAME': 'unglueit',
|
2012-01-15 22:14:45 +00:00
|
|
|
'USER': 'root',
|
|
|
|
'PASSWORD': 'unglue1t',
|
2012-01-15 20:37:08 +00:00
|
|
|
'HOST': 'production.cboagmr25pjs.us-east-1.rds.amazonaws.com',
|
2011-10-07 03:14:29 +00:00
|
|
|
'PORT': '',
|
2012-04-20 17:18:54 +00:00
|
|
|
'TEST_CHARSET': 'utf8',
|
2011-10-07 03:14:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
TIME_ZONE = 'America/New_York'
|
2016-04-07 18:26:45 +00:00
|
|
|
SECRET_KEY = u'_^_off!8zsj4+)%qq623m&$7_m-q$iau5le0w!mw&n5tgt#x=t'
|
2011-10-07 03:14:29 +00:00
|
|
|
|
2011-11-20 14:51:19 +00:00
|
|
|
# settings for outbout email
|
|
|
|
# if you have a gmail account you can use your email address and password
|
|
|
|
|
2012-06-23 00:13:24 +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
|
2012-06-21 19:45:43 +00:00
|
|
|
DEFAULT_FROM_EMAIL = 'notices@gluejar.com'
|
2011-10-07 03:14:29 +00:00
|
|
|
|
2013-07-02 14:37:12 +00:00
|
|
|
# googlebooks
|
|
|
|
# key generated by rdhyee@gluejar.com 2013/07/02
|
|
|
|
GOOGLE_BOOKS_API_KEY = 'AIzaSyAGUEeGJXXLj9Tau4fpIFUCdOSKfDmJDVw'
|
2011-10-10 20:40:19 +00:00
|
|
|
|
2011-10-07 03:14:29 +00:00
|
|
|
# twitter auth
|
2015-04-09 15:44:48 +00:00
|
|
|
SOCIAL_AUTH_TWITTER_KEY = 'sd9StEg1N1qB8gGb2GRX4A'
|
|
|
|
SOCIAL_AUTH_TWITTER_SECRET = 'YSKHn8Du6EWqpcWZ6sp5tqDPvcOBXK0WJWVGWyB0'
|
2011-10-07 03:14:29 +00:00
|
|
|
|
|
|
|
# facebook auth
|
2015-04-09 15:44:48 +00:00
|
|
|
SOCIAL_AUTH_FACEBOOK_KEY = '211951285561911'
|
|
|
|
SOCIAL_AUTH_FACEBOOK_SECRET = '42efef7e540b80479dbbb69490cd902a'
|
2011-10-07 03:14:29 +00:00
|
|
|
|
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-k83htoc5h00mqs4rr6tv22tdcc23jh4r.apps.googleusercontent.com'
|
|
|
|
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = 'ZyV5Q-E2MkJhRGm42XQAPeZi'
|
2011-10-20 04:36:41 +00:00
|
|
|
|
2011-11-11 22:33:58 +00:00
|
|
|
# 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
|
2011-11-23 00:21:38 +00:00
|
|
|
|
|
|
|
# Next step to try https
|
2015-08-25 15:07:11 +00:00
|
|
|
#BASE_URL = 'http://unglue.it'
|
2012-05-16 00:42:16 +00:00
|
|
|
BASE_URL_SECURE = 'https://unglue.it'
|
|
|
|
IPN_SECURE_URL = False
|
2011-10-20 04:36:41 +00:00
|
|
|
|
2011-10-20 05:18:04 +00:00
|
|
|
# use redis for production queue
|
|
|
|
BROKER_TRANSPORT = "redis"
|
|
|
|
BROKER_HOST = "localhost"
|
|
|
|
BROKER_PORT = 6379
|
|
|
|
BROKER_VHOST = "0"
|
2011-11-17 23:05:01 +00:00
|
|
|
|
|
|
|
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,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-11-18 16:37:05 +00:00
|
|
|
STATIC_ROOT = '/var/www/static'
|
2013-02-11 19:24:32 +00:00
|
|
|
#CKEDITOR_UPLOAD_PATH = '/var/www/static/media/'
|
|
|
|
#CKEDITOR_UPLOAD_PREFIX = 'https://unglue.it/static/media/'
|
2012-03-27 21:53:07 +00:00
|
|
|
|
2012-04-05 20:41:58 +00:00
|
|
|
# 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-06-30 01:22:19 +00:00
|
|
|
# update the statuses of campaigns
|
|
|
|
CELERYBEAT_SCHEDULE['update_active_campaign_statuses'] = UPDATE_ACTIVE_CAMPAIGN_STATUSES
|
2012-04-28 17:02:38 +00:00
|
|
|
CELERYBEAT_SCHEDULE['report_new_ebooks'] = EBOOK_NOTIFICATIONS_JOB
|
2012-11-21 16:09:18 +00:00
|
|
|
CELERYBEAT_SCHEDULE['notify_ending_soon'] = NOTIFY_ENDING_SOON_JOB
|
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
|
2015-01-23 18:11:19 +00:00
|
|
|
CELERYBEAT_SCHEDULE['refresh_acqs'] = NOTIFY_UNCLAIMED_GIFTS
|
2012-05-05 20:45:50 +00:00
|
|
|
|
2012-05-10 16:03:10 +00:00
|
|
|
# set -- sandbox or production Amazon FPS?
|
2012-05-14 06:11:47 +00:00
|
|
|
#AMAZON_FPS_HOST = "fps.sandbox.amazonaws.com"
|
|
|
|
AMAZON_FPS_HOST = "fps.amazonaws.com"
|
2012-05-10 16:03:10 +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 = 'AKIAIRLBDIET3DFCNU4A'
|
|
|
|
AWS_SECRET_ACCESS_KEY = 'hor/7+zQTQco0S5IQlbldXD+mEptjGIXCB7VN7e5'
|
2014-02-20 01:22:45 +00:00
|
|
|
AWS_STORAGE_BUCKET_NAME = 'unglueit-files'
|
2013-02-11 18:47:03 +00:00
|
|
|
|
2013-03-30 16:47:45 +00:00
|
|
|
# we should suppress Google Analytics outside of production
|
|
|
|
SHOW_GOOGLE_ANALYTICS = True
|
|
|
|
|
2014-05-02 18:19:05 +00:00
|
|
|
BOOXTREAM_API_KEY = '987n76Zsc4hj9jUvfctxezZQZ2vnhm'
|
|
|
|
BOOXTREAM_API_USER = 'unglueprod'
|
|
|
|
|
2012-05-05 20:45:50 +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
|