Skip to content

Instantly share code, notes, and snippets.

@perymerdeka
Created September 2, 2021 14:39
Show Gist options
  • Save perymerdeka/0e3f4e2a61304551acac96a906b78ff9 to your computer and use it in GitHub Desktop.
Save perymerdeka/0e3f4e2a61304551acac96a906b78ff9 to your computer and use it in GitHub Desktop.
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