I recently spent a lot of time trying to get my models automatically
imported into IPython 0.11 from the shell. command. I finally got it
working by making a new ishell command from the existing shell.py
(http://greencm.blogspot.com/2011/10/django-ipython-011-models.html).

The default django shell.py never calls the IPython Profile hooks.  I
think the one patch
(https://code.djangoproject.com/attachment/ticket/14892/IPython.patch)
 ran shell() rather than embed.

import IPython
IPython.embed()

That causes the default profiles to be loaded.   Given that the patch
was 11 months before 0.11 final was out, it's possible the API drifted
along the way.
-- 
Chris Green <gree...@gmail.com>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to