2017-11-26 11:16:57 +11:00
|
|
|
ORG_NAME = 'Your Organisation Here'
|
|
|
|
|
2017-11-28 12:29:12 +11:00
|
|
|
BASE_URI = 'http://localhost:5000'
|
|
|
|
|
2017-11-26 11:16:57 +11:00
|
|
|
SECRET_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxx'
|
|
|
|
|
|
|
|
AUTH_METHODS = [
|
2017-11-26 20:48:15 +11:00
|
|
|
('email', 'Email'),
|
2017-11-26 11:16:57 +11:00
|
|
|
('reddit', 'Reddit')
|
|
|
|
]
|
2017-11-26 20:48:15 +11:00
|
|
|
|
2018-08-23 14:31:58 +10:00
|
|
|
import eos.base.election
|
2017-12-07 15:33:11 +11:00
|
|
|
import eos.redditauth.election
|
|
|
|
ADMINS = [
|
2018-08-23 14:31:58 +10:00
|
|
|
#eos.redditauth.election.RedditUser(username='xxxxxxxx'),
|
|
|
|
#eos.base.election.EmailUser(email='xxxxx@example.com', password='abc123'),
|
2017-12-07 15:33:11 +11:00
|
|
|
]
|
|
|
|
|
2017-12-12 20:32:02 +11:00
|
|
|
TASK_RUN_STRATEGY = 'eos.core.tasks.direct.DirectRunStrategy'
|
|
|
|
|
2017-12-13 15:21:22 +11:00
|
|
|
TIMEZONE = 'Australia/Canberra'
|
|
|
|
|
2017-11-27 19:40:01 +11:00
|
|
|
# MongoDB
|
|
|
|
|
|
|
|
DB_TYPE = 'mongodb'
|
|
|
|
DB_URI = 'mongodb://localhost:27017/'
|
|
|
|
DB_NAME = 'eos'
|
|
|
|
|
2017-11-27 20:12:31 +11:00
|
|
|
# PostgreSQL
|
|
|
|
|
|
|
|
#DB_TYPE = 'postgresql'
|
|
|
|
#DB_URI = 'postgresql://'
|
|
|
|
#DB_NAME = 'eos'
|
|
|
|
|
2017-11-26 20:48:15 +11:00
|
|
|
# Email
|
|
|
|
|
2018-01-04 14:36:07 +11:00
|
|
|
MAIL_SERVER, MAIL_PORT = 'localhost', 25
|
|
|
|
MAIL_USERNAME, MAIL_PASSWORD = None, None
|
|
|
|
MAIL_DEFAULT_SENDER = 'eos@localhost'
|
2017-11-26 20:48:15 +11:00
|
|
|
|
|
|
|
# Reddit
|
2018-12-29 19:23:21 +11:00
|
|
|
# Register a web app at https://www.reddit.com/prefs/apps
|
2018-12-30 13:44:59 +11:00
|
|
|
# The redirect URI will be http(s)://hostname(:port)/auth/reddit/oauth_callback
|
2017-11-26 20:48:15 +11:00
|
|
|
|
|
|
|
REDDIT_OAUTH_CLIENT_ID = 'xxxxxxxxxxxxxx'
|
|
|
|
REDDIT_OAUTH_CLIENT_SECRET = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx'
|
|
|
|
REDDIT_USER_AGENT = 'Application Title by /u/Your_Username'
|
2017-12-11 13:53:25 +11:00
|
|
|
|
|
|
|
# Security
|
|
|
|
|
|
|
|
CAST_IP = True
|
|
|
|
CAST_FINGERPRINT = False
|