Re: how can i use manage.py as a command in script file

2010-03-16 Thread pyleaf
thank you all! On Wed, Mar 17, 2010 at 12:33 AM, aditya wrote: > Thanks for the link, that was an interesting read. > > On Mar 16, 9:07 am, Preston Holmes wrote: > > On Mar 15, 10:27 pm, pyleaf wrote: > > > > > > > > > I want to use manage.py as a command in script file. > > > e.g, > > > > > >

Re: how can i use manage.py as a command in script file

2010-03-16 Thread aditya
Thanks for the link, that was an interesting read. On Mar 16, 9:07 am, Preston Holmes wrote: > On Mar 15, 10:27 pm, pyleaf 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

Re: how can i use manage.py as a command in script file

2010-03-16 Thread Preston Holmes
On Mar 15, 10:27 pm, pyleaf 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

Re: how can i use manage.py as a command in script file

2010-03-16 Thread Daniel Roseman
On Mar 16, 5:27 am, pyleaf 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. >

how can i use manage.py as a command in script file

2010-03-15 Thread pyleaf
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/lo