You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.
#!/usr/bin/env python
from flask_script import Manager
from app import app
manager = Manager(app)
@manager.shell
def make_shell_context():
""" Creates a python REPL with several default imports
in the context of the app
"""
return dict(app=app)
if __name__ == "__main__":
manager.run()
I am running the following command:
python manage.py shell
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I get the following error when trying to use IPython 5.1.0 with Flask-Script 2.0.5:
Any chance someone can give me some guidance on fixing this? (And no, using IPython.embed() does not fix it.)
If I can get a little guidance, I would be willing to fix for the current version of Flask 0.11.1 and the upcoming 1.x version.
The text was updated successfully, but these errors were encountered: