Excellent! Thanks!
Todd
On May 5, 2006, at 8:58 AM, [EMAIL PROTECTED] wrote:
>
> If you wish to use your Django ORM outside of Django context,
> you will need refine your PYTHONPATH and
> DJANGO_SETTINGS_MODULE env variables. From your outside-django
> script, you can do the following:
>
>
If you wish to use your Django ORM outside of Django context,
you will need refine your PYTHONPATH and
DJANGO_SETTINGS_MODULE env variables. From your outside-django
script, you can do the following:
import sys, os
os.environ['DJANGO_SETTINGS_MODULE'] =
'your_django_project.settings'
On 5/5/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote:
>
> How possible is it to use the ORM part of Django separate from
> everything else?
You can freely use your apps in every way you need: web, cli, gui or smth. else.
Just instal django as usual, make your app, manage it with manage.py,
put it
How possible is it to use the ORM part of Django separate from
everything else?
I'm planning to use Django for a webapp, but I'm also working on a
GUI app that has to connect to remote server for database access and
other stuff. Can I leverage the Django ORM in the GUI server/client
app,
4 matches
Mail list logo