App flask

This commit is contained in:
2024-04-10 14:25:03 +02:00
parent 6882eb00aa
commit 224a6de528
9 changed files with 128 additions and 0 deletions

27
flask/config.py Normal file
View File

@@ -0,0 +1,27 @@
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
DEBUG = False
TESTING = False
CSRF_ENABLED = True
SECRET_KEY = 'this-really-needs-to-be-changed'
class ProductionConfig(Config):
DEBUG = False
class StagingConfig(Config):
DEVELOPMENT = True
DEBUG = True
class DevelopmentConfig(Config):
DEVELOPMENT = True
DEBUG = True
class TestingConfig(Config):
TESTING = True