-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
38 lines (26 loc) · 888 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: Fyzel@users.noreply.github.com
@copyright: 2017 Englesh.org. All rights reserved.
@license: https://github.com/Fyzel/weather-data-flaskapi/blob/master/LICENSE
@contact: Fyzel@users.noreply.github.com
@deffield updated: 2017-06-14
"""
class Config(object):
DEBUG = False
TESTING = False
SQLALCHEMY_DATABASE_URI = 'mysql://weather-api:mypass@localhost/Weather?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