I need to postprocess some data in my models and the most natural way
of doing this would be to run periodically standalone script. But on
the other hand I want to use framework ORM just because it would much
more handy than raw sql. What should I import to plug in django in
standalone script that runs from command line ?
I find this useful for when I need to make a standalone script:
http://www.b-list.org/weblog/2007/sep/22/standalone-django-scripts/
--
David Reynolds
da...@reynoldsfamily.org.uk
I think that post summarises most of the good options. It allows you to
use Django as a set of libraries. Alex's suggestion of writing a
management command, whilst not bad and can be useful at times, really
has the dependencies backwards when you're trying to use Django as part
of something else.
Personally, I much prefer to think of (and design) Django as a set of
libraries to built upon (and to resuse in other applications), rather
than a framework to work within.
Regards,
Malcolm