Fixing config.py

This commit is contained in:
Denis-Cosmin Nutiu 2017-04-16 21:13:42 +03:00
parent 12095485ab
commit bab32e271f

View file

@ -35,13 +35,11 @@ class DevelopmentConfig(Config):
@staticmethod @staticmethod
def init_app(app): def init_app(app):
with app.app_context(): with app.app_context():
db.drop_all()
db.create_all() db.create_all()
class ProductionConfig(Config): class ProductionConfig(Config):
BOOTSTRAP_USE_MINIFIED = True BOOTSTRAP_USE_MINIFIED = True
pass
class TestingConfig(Config): class TestingConfig(Config):