"Maciej Blizinski" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

>On Tue, 2006-07-18 at 22:52 +0200, Maciej Blizinski wrote:
>> I already checked the documentation for manage.py, but it doesn't
>> mention anything about executing a script.
>
>Magus- from #django @ Freenode provided a solution:
>
>import sys,os
>sys.path.append('/path/to/root/of/django/projects/')
>os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings'

If you have IPython installed on your machine, you can just do...

$ ./manage.py shell
[...]
In [1]: run myscript.py


-- 
Russ




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

Reply via email to