Entries published on September 22, 2007
Standalone Django scripts
In the grand tradition of providing answers to frequently-asked questions from the django-users mailing list and the
#django IRC channel, I’d like to tackle something that’s fast becoming the most frequently-asked question: how do you write standalone scripts which make use of Django components?
At first glance, this isn’t a terribly hard thing to do: Django’s just plain Python, and all of its components can — in theory — be imported and used just like any other Python modules. But the thing that trips most people up is the need, in ...