Created
September 2, 2021 14:39
-
-
Save perymerdeka/0e3f4e2a61304551acac96a906b78ff9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
class BaseConfig: | |
TESTING: bool = False | |
SECRET_KEY: str = '@Flaskr-MongoSeCretKeyS' | |
DEBUG: bool = False | |
class DevelopmentConfig(BaseConfig): | |
MONGODB_SETTINGS: dict = { | |
'db': 'flask_blog_db', | |
'host': 'localhost', | |
'port': 27017 | |
} | |
BASE_DIR = os.path.abspath(os.path.dirname(__file__)) | |
class ProductionConfig(BaseConfig): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment