mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 12:41:49 +02:00
Fix manage.py imports
This commit is contained in:
parent
708585c5fd
commit
629037c861
1 changed files with 8 additions and 1 deletions
|
@ -5,6 +5,8 @@ from flask_script import Manager, Command
|
|||
from flask_migrate import Migrate, MigrateCommand
|
||||
from werkzeug.security import generate_password_hash
|
||||
|
||||
from .run import app
|
||||
from .models import db
|
||||
|
||||
|
||||
class GeneratePasswordHash(Command):
|
||||
|
@ -20,5 +22,10 @@ manager = Manager(app)
|
|||
manager.add_command('db', MigrateCommand)
|
||||
manager.add_command('generate_password_hash', GeneratePasswordHash)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
def main():
|
||||
manager.run()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Reference in a new issue