2011-08-31 03:46:55 +00:00
|
|
|
from regluit.settings.common import *
|
|
|
|
|
2016-05-06 23:06:50 +00:00
|
|
|
ALLOWED_HOSTS = ['.unglue.it']
|
2011-08-31 03:46:55 +00:00
|
|
|
DEBUG = True
|
2016-07-27 17:48:12 +00:00
|
|
|
TEMPLATES[0]['OPTIONS']['debug'] = DEBUG
|
2011-08-31 03:46:55 +00:00
|
|
|
|
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'
|
2016-04-18 17:17:21 +00:00
|
|
|
SECRET_KEY = b'_^_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
|
|
|
|
|
2015-04-10 23:05:12 +00:00
|
|
|
SOCIAL_AUTH_TWITTER_KEY = ''
|
|
|
|
SOCIAL_AUTH_TWITTER_SECRET = ''
|
2011-09-06 01:50:55 +00:00
|
|
|
|
|
|
|
# facebook auth
|
|
|
|
# you'll need to create a new Facebook application to fill in these blanks
|
|
|
|
# https://developers.facebook.com/apps/
|
|
|
|
|
2015-04-10 23:05:12 +00:00
|
|
|
SOCIAL_AUTH_FACEBOOK_KEY = ''
|
|
|
|
SOCIAL_AUTH_FACEBOOK_SECRET = ''
|
|
|
|
|
|
|
|
# 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 = ''
|
|
|
|
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = ''
|
2011-09-06 01:50:55 +00:00
|
|
|
|
|
|
|
|
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
|
2015-04-10 23:05:12 +00:00
|
|
|
PAYMENT_PROCESSOR = 'stripelib'
|
2012-04-24 00:12:36 +00:00
|
|
|
|
|
|
|
# set -- sandbox or production Amazon FPS?
|
|
|
|
AMAZON_FPS_HOST = "fps.sandbox.amazonaws.com"
|
|
|
|
#AMAZON_FPS_HOST = "fps.amazonaws.com"
|
|
|
|
|
2011-10-18 23:27:20 +00:00
|
|
|
|
2015-08-25 15:07:11 +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
|
2012-05-05 20:45:50 +00:00
|
|
|
CELERYBEAT_SCHEDULE['report_new_ebooks'] = EBOOK_NOTIFICATIONS_JOB
|
|
|
|
|
|
|
|
try:
|
|
|
|
from regluit.settings.local import *
|
|
|
|
except ImportError:
|
2016-04-18 17:17:21 +00:00
|
|
|
pass
|