hi but how do i do it when the server is running ?? i basically want to stop it and restart it in the program is it possible ?
On Mon, Apr 23, 2012 at 6:54 PM, Joel Goldstick <joel.goldst...@gmail.com>wrote: > On Mon, Apr 23, 20ogr12 at 9:16 AM, Joel Goldstick > <joel.goldst...@gmail.com> wrote: > > On Mon, Apr 23, 2012 at 6:10 AM, dummyman dummyman <tempo...@gmail.com> > wrote: > >> how to restart a django development server programmatically in python ? > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Django users" group. > >> To post to this group, send email to django-users@googlegroups.com. > >> To unsubscribe from this group, send email to > >> django-users+unsubscr...@googlegroups.com. > >> For more options, visit this group at > >> http://groups.google.com/group/django-users?hl=en. > > > > python manage.py runserver > > > oops I spoke too soon. Didn't see you want to do this > programatically. But I suppose you could just invoke that line using > subprocess? > http://docs.python.org/library/subprocess.html#module-subprocess > > -- > > Joel Goldstick > > > > -- > Joel Goldstick > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.