Example #1
0
from crm import create_app

__author__ = "zhou"
__date__ = "2019-06-11 20:54"


app = create_app()


if __name__ == "__main__":
    app.run(host="0.0.0.0", port=8082, debug=True)







Example #2
0
 def setUp(self):
     self.app = create_app(TestConfig)
     self.app_context = self.app.app_context()
     self.app_context.push()
     db.create_all()