Comments on: Snippet to load stuff quickly in the Django shell http://www.michelepasin.org/blog/2009/05/27/snippet-to-quickly-load-stuff-in-the-django-shell/ At the core of all well-founded belief lies belief that is unfounded - Wittgenstein Sat, 06 Mar 2010 20:07:02 +0000 hourly 1 https://wordpress.org/?v=5.2.11 By: Gregory Despain http://www.michelepasin.org/blog/2009/05/27/snippet-to-quickly-load-stuff-in-the-django-shell/comment-page-1/#comment-51 Sat, 06 Mar 2010 20:07:02 +0000 http://magicrebirth.wordpress.com/?p=176#comment-51 Thanks for this post. I am new at development and this is a big help.

]]>
By: magicrebirth http://www.michelepasin.org/blog/2009/05/27/snippet-to-quickly-load-stuff-in-the-django-shell/comment-page-1/#comment-50 Fri, 11 Sep 2009 13:24:41 +0000 http://magicrebirth.wordpress.com/?p=176#comment-50 yeah you can do it that way, although I usually keep it in my project folder in a package containing other utilities, and then load it with this:
>>> from myproject.mytools.libloader import *

]]>
By: Joel Bremson http://www.michelepasin.org/blog/2009/05/27/snippet-to-quickly-load-stuff-in-the-django-shell/comment-page-1/#comment-49 Thu, 03 Sep 2009 04:19:17 +0000 http://magicrebirth.wordpress.com/?p=176#comment-49 There is something missing from the instructions, I think.

Put the above code into a file at your doc root, call it libloader.py, for example.

Then:

>python manage.py shell

>>>execfile(“./libloader.py”)

]]>