How to stop testserver from within a test case?

61 views
Skip to first unread message

Arun Marathe

unread,
Nov 18, 2014, 10:51:27 AM11/18/14
to django-d...@googlegroups.com



We have Django 1.6.

For a somewhat obscure reason, I need to stop the testserver from within a test case. Any ideas?
I would like a programmatic solution if possible. Finding a process and killing it (ps -ef., then grep,
then kill) is bit of a hack, and may end up killing unintended processes.

Note that I want the testserver stopped for a small number of test cases. For the rest of them, the
testserver should be running as it always does.

Thanks,
Arun

Florian Apolloner

unread,
Nov 19, 2014, 6:14:19 AM11/19/14
to django-d...@googlegroups.com
Hi Arun,

usage questions should go to django-users. This mailing list is about the development of Django itself.

Cheers,
Florian

Peter Inglesby

unread,
Nov 19, 2014, 6:24:21 AM11/19/14
to django-d...@googlegroups.com
Hi Arun,

This group is for discussion of development of Django itself.  Your question is better suited to the 'Django users' group: https://groups.google.com/forum/#!forum/django-users

All the best,

Peter

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/422b87d4-f4c2-468b-a4ad-1219f61b96e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages