-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
23 lines (20 loc) · 881 Bytes
/
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
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
db_url = 'postgresql://username:password@db:5432/swampfox'
redis = 'sfredis'
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or db_url_dev
SQLALCHEMY_TRACK_MODIFICATIONS = False
ROOT_DIR = os.path.dirname(__file__)
DIST_DIR = os.path.join(ROOT_DIR, 'dist')
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
BUNGIE_API_KEY = {'X-API-Key': 'api key here'}
class ConfigProd(object):
db_url = 'postgresql://username:password@db:5432/swampfox'
redis = 'sfredis'
SQLALCHEMY_DATABASE_URI = db_url
SQLALCHEMY_TRACK_MODIFICATIONS = False
ROOT_DIR = os.path.dirname(__file__)
DIST_DIR = os.path.join(ROOT_DIR, 'dist')
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
BUNGIE_API_KEY = {'X-API-Key': 'api key here'}