mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #28212 -- Allowed customizing the port that LiveServerTestCase uses.
Forwardport of 877d7b71ae from stable/1.11.x
This commit is contained in:
committed by
Tim Graham
parent
a30482a4b6
commit
b6d4b6e544
@@ -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