DEV Community

ilu
ilu

Posted on

Migrating from Flask-Script to Flask-CLI

I am migrating from Flask-Script to Flask-CLI with the latest Flask version. Here are what my manage.py and migrate.py file look like.
I am getting this error#

app 
Traceback (most recent call last):
File "manage. py", line 19, in
<module>
cli()
File "/usr/local/lib/python3.7/site-packages/click/core. py", line 1130, in __call__
2022-06-10 20:01:34
app
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/flask/cli.py", line 579, in main
2022-06-10 20:01:34
app 
return super().main(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/core. py", line 1055, in main
2022-06-10 20:01:34
app
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/site-packages/click/core. py", line 1657, in invoke
Enter fullscreen mode Exit fullscreen mode

Please help thanks!

Image description
Image description
Image description

Top comments (0)