File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ class Config:
6767 RQ_DEFAULT_PASSWORD = url .password
6868 RQ_DEFAULT_DB = 0
6969
70+
7071 @staticmethod
7172 def init_app (app ):
7273 pass
@@ -77,7 +78,11 @@ class DevelopmentConfig(Config):
7778 ASSETS_DEBUG = True
7879 SQLALCHEMY_DATABASE_URI = os .environ .get ('DEV_DATABASE_URL' ) or \
7980 'sqlite:///' + os .path .join (basedir , 'data-dev.sqlite' )
80- print ('THIS APP IS IN DEBUG MODE. YOU SHOULD NOT SEE THIS IN PRODUCTION.' )
81+
82+
83+ @classmethod
84+ def init_app (cls , app ):
85+ print ('THIS APP IS IN DEBUG MODE. YOU SHOULD NOT SEE THIS IN PRODUCTION.' )
8186
8287
8388class TestingConfig (Config ):
@@ -87,6 +92,11 @@ class TestingConfig(Config):
8792 WTF_CSRF_ENABLED = False
8893
8994
95+ @classmethod
96+ def init_app (cls , app ):
97+ print ('THIS APP IS IN TESTING MODE. YOU SHOULD NOT SEE THIS IN PRODUCTION.' )
98+
99+
90100class ProductionConfig (Config ):
91101 SQLALCHEMY_DATABASE_URI = os .environ .get ('DATABASE_URL' ) or \
92102 'sqlite:///' + os .path .join (basedir , 'data.sqlite' )
You can’t perform that action at this time.
0 commit comments