1
2
3
4
5
6
7
8
9
10
from myapp import *
# more imports you need in your interactive console

# set up some local variables you can access
foo = 3
c = Controller()

# drop into a shell
import code
code.interact(local=locals())