-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Chris,

On 10/10/2011 05:52 AM, Chris Green wrote:
> 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.

I had the same trouble you did, only didn't pursue it very far. I don't
see any reason "manage.py shell" shouldn't support IPython profiles, and
would support a ticket/patch to this end. If it uses an IPython API
that's 0.11-only, though, it needs to have a fallback to still support
0.10 as well.

Carl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6THKQACgkQ8W4rlRKtE2c8/ACgmMdvnesM4X1zZlcoDw+/TDtt
2qIAn19W0bExqZE/AWhVnJJVQLQqARsi
=/vI5
-----END PGP SIGNATURE-----

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

Reply via email to