예제 #1
0
파일: manage.py 프로젝트: huangjien/autoP
def deploy():
    """Run deployment tasks."""
    from autoP.models import init_db
    init_db()
예제 #2
0
 def setUpClass(cls):
     cls.app = create_app('testing')  # testing is lower case
     cls.current_app = cls.app
     cls.app_context = cls.app.app_context()
     cls.app_context.push()
     init_db()
예제 #3
0
 def setUpClass(cls):
     cls.app = create_app('testing')  # testing is lower case
     cls.current_app = cls.app
     cls.app_context = cls.app.app_context()
     cls.app_context.push()
     init_db()
예제 #4
0
파일: manage.py 프로젝트: pangyazhi/autoP
def deploy():
    """Run deployment tasks."""
    from autoP.models import init_db
    init_db()