Casey T. Deccio wrote:
> I would find it extremely useful to pass a script argument to the
> 'manage.py shell' command, so I could run arbitrary scripts using the
> models library defined in project/app.  I can't currently see a way to
> do this except using input redirection:
> 
> python manage.py shell < script.py
> 
> Is there a better way to do this?  Would it be useful to take an
> argument from the 'manage.py shell' to support this?
> 
> Thanks,
> casey

Although I'd like to see something in shell too, this question came up 
on the django-users list the other day, and here's one possible solution:

http://groups.google.com/group/django-users/browse_thread/thread/9c571e82e1930c99/56b04af443685df7?lnk=gst&q=application+commands+and+one+off+scripts&rnum=5&hl=en#56b04af443685df7

Works great for me, I just have an _local directory, drop my scripts in 
there, and run "python test_shell.py _local.some_module".

gav



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to