mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[1.11.x] Fixed #28212 -- Allowed customizing the port that LiveServerTestCase uses.
This commit is contained in:
committed by
Tim Graham
parent
ceb6a64f2f
commit
877d7b71ae
@@ -4,7 +4,14 @@ Django 1.11.2 release notes
|
||||
|
||||
*Under development*
|
||||
|
||||
Django 1.11.2 fixes several bugs in 1.11.1.
|
||||
Django 1.11.2 adds a minor feature and fixes several bugs in 1.11.1.
|
||||
|
||||
Minor feature
|
||||
=============
|
||||
|
||||
The new ``LiveServerTestCase.port`` attribute reallows the use case of binding
|
||||
to a specific port following the :ref:`bind to port zero
|
||||
<liveservertestcase-port-zero-change>` change in Django 1.11.
|
||||
|
||||
Bugfixes
|
||||
========
|
||||
|
||||
@@ -533,6 +533,8 @@ to support it.
|
||||
Also, the minimum supported version of psycopg2 is increased from 2.4.5 to
|
||||
2.5.4.
|
||||
|
||||
.. _liveservertestcase-port-zero-change:
|
||||
|
||||
``LiveServerTestCase`` binds to port zero
|
||||
-----------------------------------------
|
||||
|
||||
@@ -542,6 +544,9 @@ to assign a free port. The ``DJANGO_LIVE_TEST_SERVER_ADDRESS`` environment
|
||||
variable is no longer used, and as it's also no longer used, the
|
||||
``manage.py test --liveserver`` option is removed.
|
||||
|
||||
If you need to bind ``LiveServerTestCase`` to a specific port, use the ``port``
|
||||
attribute added in Django 1.11.2.
|
||||
|
||||
Protection against insecure redirects in :mod:`django.contrib.auth` and ``i18n`` views
|
||||
--------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user