-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
33 lines (31 loc) · 1.48 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import os
from dotenv import load_dotenv
basedir = os.path.abspath(os.path.dirname(__file__))
load_dotenv(os.path.join(basedir, '.env'))
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY')
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_TRACK_MODIFICATIONS = False
MAIL_SERVER = os.environ.get('MAIL_SERVER')
MAIL_PORT = int(os.environ.get('MAIL_PORT') or 25)
MAIL_USE_TLS = os.environ.get('MAIL_USE_TLS') is not None
MAIL_USERNAME = os.environ.get('MAIL_USERNAME')
MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD')
HCAPTCHA_SITE_KEY = os.environ.get('HCAPTCHA_SITE_KEY')
HCAPTCHA_SECRET_KEY = os.environ.get('HCAPTCHA_SECRET_KEY')
MAILJET_KEY = os.environ.get('MAILJET_KEY')
MAILJET_SECRET = os.environ.get('MAILJET_SECRET')
# MOM_EMAIL = os.environ.get('MOM_EMAIL')
# DAD_EMAIL = os.environ.get('DAD_EMAIL')
ADMINS = [os.environ.get('ADMINS')]
HELLO_EMAIL = os.environ.get('HELLO_EMAIL')
PHONE = os.environ.get('PHONE')
ADMIN_EMAIL = os.environ.get('ADMIN_EMAIL')
SPREADSHEET_ID = os.environ.get('SPREADSHEET_ID')
ONEPAGECRM_ID = os.environ.get('ONEPAGECRM_ID')
ONEPAGECRM_PW = os.environ.get('ONEPAGECRM_PW')
TODOIST_ID = os.environ.get('TODOIST_ID')
GAS_DEPLOYMENT_ID = os.environ.get('GAS_DEPLOYMENT_ID')
SCORE_REPORT_SS_ID = os.environ.get('SCORE_REPORT_SS_ID')
REDIS_URL = os.environ.get('REDIS_URL') or 'redis://'