I've never personally used DJANGO_LIVE_TEST_SERVER_ADDRESS for another 
purpose than preventing port conflicts which binding to port 0 solves.

It always looked strange to me to rely on an environment variable to 
achieve this. It feels like it was done this way to avoid introducing yet 
another setting.

I suppose we could deprecate DJANGO_LIVE_TEST_SERVER_ADDRESS and use a 
LiveServerTestCase.server_thread_class = LiveServerThread attribute to 
create the thread and suggest overriding it in the deprecation warning 
message if new behavior is problematic.

Simon

Le jeudi 16 juin 2016 21:23:05 UTC-4, Tim Graham a écrit :
>
> In IRC the other day, Donald pointed out 
> https://www.dnorth.net/2012/03/17/the-port-0-trick/ and suggested that 
> Django might be able to take advantage of that technique.
>
> I put together a proof of concept that seems to work: 
> https://github.com/django/django/pull/6791
>
> I'm wondering if anyone sees any problems with this approach and if 
> there's any use case for continuing to support customizing the address 
> using the DJANGO_LIVE_TEST_SERVER_ADDRESS environment variable.
>

-- 
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-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/26e39c6f-74ea-4256-82a2-fe32ad3b87fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to