djangosnippets.org: Latest snippets posted by sheatshttps://djangosnippets.org/users/sheats/2008-01-09T10:29:45.987130-06:00sheatsAutoload Django Models When Using ./manage.py shell
2008-01-09T10:29:45.987130-06:00sheatshttps://djangosnippets.org/snippets/540/<p>It's a pain to import all the Django models you want to use in the Python shell every time you start it. Here's how you can get IPython to autoload all your Django models for you every time you start the shell using ./manage.py shell. </p>
<p>Put the code in a …</p>
Freely redistributable