-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
38 lines (27 loc) · 794 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
import os
class Config:
'''
General configuration parent class
'''
NEWS_API_BASE_URL="https://newsapi.org/v2/{}?country=us&apiKey={}"
NEWS_API_ARTICLES_URL = 'https://newsapi.org/v2/top-headlines?sources={}&apiKey={}'
NEWS_API_KEY = '7ff84f7f5d3f43ab99b610a6ddaf9e72'
SECRET_KEY='Flask WTF Secret Key'
class ProdConfig(Config):
'''
Production configuration child class
Args:
Config: The parent configuration class with General configuration settings
'''
pass
class DevConfig(Config):
'''
Development configuration child class
Args:
Config: The parent configuration class with General configuration settings
'''
DEBUG = True
config_options = {
'development':DevConfig,
'production':ProdConfig
}