-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
38 lines (26 loc) · 900 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""
@author: [email protected]
@copyright: 2017 Englesh.org. All rights reserved.
@license: https://github.com/Fyzel/geolocation-data-flaskapi/blob/master/LICENSE
@contact: [email protected]
@deffield updated: 2017-10-15
"""
class Config(object):
DEBUG = False
TESTING = False
SQLALCHEMY_DATABASE_URI = 'mysql://geolocation-api:mypass@localhost/Geolocation?charset=utf8'
SECRET_KEY = 'Change me'
SQLALCHEMY_TRACK_MODIFICATIONS = False
# RESTplus settings
RESTPLUS_SWAGGER_UI_DOC_EXPANSION = 'list'
RESTPLUS_VALIDATE = True
RESTPLUS_MASK_SWAGGER = False
RESTPLUS_ERROR_404_HELP = False
class ProductionConfig(Config):
pass
class DevelopmentConfig(Config):
DEBUG = True
SQLALCHEMY_TRACK_MODIFICATIONS = True
class TestingConfig(Config):
TESTING = True
SQLALCHEMY_TRACK_MODIFICATIONS = True