On Fri, May 14, 2010 at 4:12 PM, Ozgur Yılmaz <[email protected]> wrote:
> thanks guys for being that fast...
>
> Elixir seems what I'm looking for...
>
> Russel: I've tried to figure out how to use the Djanog-ORM, but I couldn't
> find any good way other than using Djanog-Standalone
> (http://pypi.python.org/pypi/django-standalone/0.4) and it has some side
> effects. And I like to here if anybody has a good solution about using the
> Django ORM
>
> Regards,
>
> E.Ozgur Yilmaz
> Lead Technical Director
> www.ozgurfx.com
>

Theres nothing particularly complex with using django outside of a web server.

The simplest way is to hook into management commands [1] and use that
as the entry point to your program.

Alternatively, all django needs to run is the import location of the
settings module [2]. Set it in DJANGO_SETTINGS_MODULE, and then you
can just write standard python scripts, importing django bits as
needed.

Googling for DJANGO_SETTINGS_MODULE standalone brings a plethora of
blogs documenting how others have done it.

Cheers

Tom

[1] http://docs.djangoproject.com/en/1.1/howto/custom-management-commands/
[2] 
http://docs.djangoproject.com/en/1.1/topics/settings/#designating-the-settings

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

Reply via email to