2016-12-20 19:43:16 +00:00
|
|
|
# coding=utf-8
|
|
|
|
from .common import *
|
|
|
|
try:
|
|
|
|
from .keys.host import *
|
|
|
|
except ImportError:
|
|
|
|
from .dummy.host import *
|
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': {
|
2017-10-29 22:40:35 +00:00
|
|
|
'ENGINE': 'django.db.backends.mysql',
|
|
|
|
'NAME': 'unglueit',
|
2011-08-31 03:46:55 +00:00
|
|
|
'USER': '',
|
|
|
|
'PASSWORD': '',
|
|
|
|
'HOST': '',
|
|
|
|
'PORT': '',
|
2011-11-21 19:13:29 +00:00
|
|
|
'TEST_CHARSET': 'utf8',
|
2011-08-31 03:46:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-12-20 19:43:16 +00:00
|
|
|
STATIC_ROOT = '/var/www/static'
|
|
|
|
CKEDITOR_UPLOAD_PATH = '/var/www/static/media/'
|
|
|
|
|
|
|
|
|
2011-08-31 03:46:55 +00:00
|
|
|
TIME_ZONE = 'America/New_York'
|
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'
|
2016-12-20 19:43:16 +00:00
|
|
|
# EMAIL_HOST_USER is in keys/host
|
|
|
|
# EMAIL_HOST_PASSWORD is in keys/host
|
2011-09-04 05:04:04 +00:00
|
|
|
EMAIL_PORT = 587
|
2017-11-18 21:34:56 +00:00
|
|
|
DEFAULT_FROM_EMAIL = 'info@ebookfoundation.org'
|
2011-09-06 01:50:55 +00:00
|
|
|
|
2016-12-20 19:43:16 +00:00
|
|
|
# for use with test google account only
|
|
|
|
GOOGLE_DISPLAY_NAME = 'Unglue.It'
|
|
|
|
REDIRECT_IS_HTTPS = False
|
2012-04-24 00:12:36 +00:00
|
|
|
|
2011-10-18 23:27:20 +00:00
|
|
|
|
2015-08-25 15:07:11 +00:00
|
|
|
#BASE_URL = 'http://0.0.0.0'
|
2017-10-29 22:40:35 +00:00
|
|
|
BASE_URL_SECURE = 'https://0.0.0.0'
|
2011-10-20 03:31:16 +00:00
|
|
|
|
2017-10-29 22:40:35 +00:00
|
|
|
# use redis as queuing service
|
|
|
|
BROKER_TRANSPORT = "redis"
|
|
|
|
BROKER_HOST = "localhost"
|
|
|
|
BROKER_PORT = 6379
|
|
|
|
BROKER_VHOST = "0"
|
2011-10-25 01:29:01 +00:00
|
|
|
|
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"
|
|
|
|
|
2016-12-20 19:43:16 +00:00
|
|
|
# decide which of the period tasks to add to the schedule
|
|
|
|
#CELERYBEAT_SCHEDULE['send_test_email'] = SEND_TEST_EMAIL_JOB
|
|
|
|
#CELERYBEAT_SCHEDULE['refresh_acqs'] = REFRESH_ACQS_JOB
|
2012-03-09 18:34:14 +00:00
|
|
|
|
2016-12-20 19:43:16 +00:00
|
|
|
# if you're doing development work, you'll want this to be zero
|
|
|
|
IS_PREVIEW = False
|
2012-03-14 22:06:29 +00:00
|
|
|
|
|
|
|
# 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
|
2017-12-15 19:16:09 +00:00
|
|
|
|
|
|
|
# assume that CSS will get generated on dev
|
|
|
|
SASS_OUTPUT_STYLE = 'compressed'
|
|
|
|
|