-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
47 lines (31 loc) · 1.08 KB
/
config.py
File metadata and controls
47 lines (31 loc) · 1.08 KB
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
45
46
47
from __future__ import absolute_import
import os
_basedir = os.path.abspath(os.path.dirname(__file__))
class BaseConfig:
def __init__(self):
pass
DEBUG = True
SECRET_KEY = 'This string will be replaced with a proper key in production.'
SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:postgres@localhost/ote_deliveries'
SQLALCHEMY_TRACK_MODIFICATIONS = True
REQUEST_HEADERS = {
'Accept': 'application/json'
}
LOGFILE = '{}/logs/log.log'.format(_basedir)
AUTH_USERNAME = 'ote'
AUTH_PASSWORD = 'Keny@21%'
SECRET = ",\x85\x1f\t\r\xd7'\xda\xd2\xa23\x10\xddW\xe4\x141\xb78Mu\x16\rP%\xe6m\xf4xoi\x93"
@staticmethod
def init_app(app):
pass
class DevelopmentConfig(BaseConfig):
def __init__(self):
BaseConfig.__init__(self)
class ProductionConfig(DevelopmentConfig):
SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:postgres@localhost/ote_deliveries'
config = {
'development': DevelopmentConfig,
'testing': DevelopmentConfig,
'production': ProductionConfig,
'default': DevelopmentConfig
}