On Mon, Feb 23, 2009 at 8:04 AM, Konstantin S <ktechli...@gmail.com> wrote:

>
> 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 ?
>
> >
>
The best way(IMO) is to write a management script, as these will ensure all
your settings stuff is set up correctly,
http://docs.djangoproject.com/en/dev/howto/custom-management-commands/ has
instrutions on how to do this, and you can find a few good blog posts on the
ineternet.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
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