Exemple #1
0
def create_db():
    """
    Command to create the database.

    Use this command to create the all the tables from the models in models.py.
    (Alternatively Flask-Migrate can be used.)
    """
    db.create_all()
Exemple #2
0
 def setUp(self):
     db.create_all()