On Mar 16, 5:27 am, 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 > > thank you!
http://docs.djangoproject.com/en/1.1/howto/custom-management-commands/ -- DR. -- 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.

