Skip to content

Instantly share code, notes, and snippets.

@Hardtack
Created March 11, 2014 02:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hardtack/9478664 to your computer and use it in GitHub Desktop.
Save Hardtack/9478664 to your computer and use it in GitHub Desktop.
import code
from myapp import app
env = {
'app': app,
}
with app.app_context():
code.interact(local=env)
@devxoul
Copy link

devxoul commented Mar 11, 2014

i love you

@devxoul
Copy link

devxoul commented Mar 11, 2014

from myapp.model import *

app = create_app()
with app.app_context():
    code.interact(local=dict(globals(), **locals()))

Good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment