-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
52 lines (34 loc) · 1.17 KB
/
config.py
File metadata and controls
52 lines (34 loc) · 1.17 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
48
49
50
51
52
# -*- coding: utf-8 -*-
"""This module contain the confuguration for the application."""
import os
class BaseConfig():
"""Base configuration."""
SECRET_KEY = os.environ['SECRET_KEY']
DEBUG = False
TESTING = False
class TestingConfig(BaseConfig):
"""Configuration used during testing."""
SECRET_KEY = os.environ['SECRET_KEY']
DEBUG = True
TESTING = True
class DevelopmentConfig(BaseConfig):
"""Configuration used during development."""
SECRET_KEY = os.environ['SECRET_KEY']
DEBUG = True
TESTING = False
CLIENT_ID = os.environ['CLIENT_ID']
CLIENT_SECRET = os.environ['CLIENT_SECRET']
class StagingConfig(BaseConfig):
"""Configuration used during staging."""
SECRET_KEY = os.environ['SECRET_KEY']
DEBUG = True
TESTING = False
CLIENT_ID = os.environ['CLIENT_ID']
CLIENT_SECRET = os.environ['CLIENT_SECRET']
class ProductionConfig(BaseConfig):
"""Configuration used during production."""
SECRET_KEY = os.environ['SECRET_KEY']
DEBUG = False
TESTING = False
CLIENT_ID = os.environ['CLIENT_ID']
CLIENT_SECRET = os.environ['CLIENT_SECRET']