I'm inclined to make the changes, skip the deprecation, and react 
appropriately if anyone raises a use case that can't be achieved with the 
new "bind to port 0" technique.

I found a few more things that could be removed, for example the "manage.py 
test --liveserver=..." option. Only creating a ticket and release notes 
remain as long as there aren't any concerns.

https://github.com/django/django/pull/6791

On Thursday, June 16, 2016 at 11:09:06 PM UTC-4, charettes wrote:
>
> 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/4b691593-2892-4dda-9885-b2428b243ad0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to