This commit is contained in:
Yûki VACHOT 2021-12-01 11:50:19 +01:00
parent f8d91da0ef
commit 2e9fbf14e9
5 changed files with 97 additions and 31 deletions

22
config.py Normal file
View file

@ -0,0 +1,22 @@
import os
class Config(object):
DEBUG = False
TESTING = False
CSRF_ENABLED = True
SECRET_KEY = os.environ.get('SECRET_KEY', None)
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', None)
class ProductionConfig(Config):
DEBUG = False
class TestingConfig(Config):
TESTING = True
class DevelopmentConfig(Config):
DEVELOPMENT = True
DEBUG = True