On Mon, 2009-02-23 at 14:35 +0000, David Reynolds wrote:
> 2009/2/23 Konstantin S <ktechli...@gmail.com>:
> >
> > Hello!
> >
> > 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/

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


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

Reply via email to