-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
44 lines (34 loc) · 830 Bytes
/
config.py
File metadata and controls
44 lines (34 loc) · 830 Bytes
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
34
35
36
37
38
39
40
41
42
43
44
from socket import gethostname
from uuid import uuid5, NAMESPACE_DNS
'''
config.py
Configuration module for the server
'''
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
def __init__(self):
pass
VERSION = "1.0"
AUTHOR = "Jake Lawrence"
NAME = ""
@staticmethod
def init_app(app):
pass
class DevelopmentConfig(Config):
DEBUG = True
LOGLEVEL = DEBUG
DB_USER = os.getenv('DB_USER')
DB_PASS = os.getenv('DB_PASS')
API_URL = '18.191.144.92'
class ProductionConfig(Config):
DEBUG = False
LOGLEVEL = ''
DB_USER = os.getenv('DB_USER')
DB_PASS = os.getenv('DB_PASS')
API_URL = '18.191.144.92'
config = {
'development': DevelopmentConfig,
'production': ProductionConfig,
'default': ProductionConfig
}