Thanks for the link, that was an interesting read.

On Mar 16, 9:07 am, Preston Holmes <[email protected]> wrote:
> On Mar 15, 10:27 pm, pyleaf <[email protected]> wrote:
>
>
>
> > I want to use manage.py as a command in script file.
> > e.g,
>
> > >> python manage.py shell
> > >>from testproject.testapp.models import Testee
> > >>from testproject.others.modules import utils
> > >>utils.do(Testee)
>
> > Above are commands in command window manually.
> > but, how to make these like :
> > #my_script.py
> > #!/usr/local/bim/python
> > from testproject.testapp.models import Testee
> > from testproject.others.modules import utils
> > utils.do(Testee)
>
> > i dont know how to import manage.py
>
> see, and comments attached
>
> http://www.b-list.org/weblog/2007/sep/22/standalone-django-scripts/
>
>
>
> > thank you!
> > --
> > Believing is Everything.

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