Created
October 29, 2018 15:31
-
-
Save Kotauror/88b852cbeaa7106409d0d5de933f2891 to your computer and use it in GitHub Desktop.
manage.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask_script import Manager | |
from flask_migrate import Migrate, MigrateCommand | |
from app import app, db | |
migrate = Migrate(app, db) | |
manager = Manager(app) | |
manager.add_command('db', MigrateCommand) | |
if __name__ == '__main__': | |
manager.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment