def handle(*args, **kwargs): app.configure( DEBUG=True, SQLALCHEMY_ECHO=True, USE_X_SENDFILE=False, ) Server.handle(*args, **kwargs)
import sys from os.path import dirname, abspath sys.path.append(abspath(dirname(__file__))) from nyapics import app as application application.configure()
def run(*args, **kwargs): app.configure( SQLALCHEMY_ECHO=True, ) Shell.run(*args, **kwargs)
def run(self): app.configure( SQLALCHEMY_ECHO=True, ) from nyapics.models import db db.create_all()