I\'m currently working on cleaning my Django functional tests to use the LiveServerTestCase rather than bouncing selenium based tests off an instance of the development envi
If environment variable DJANGO_LIVE_TEST_SERVER_ADDRESS is not set the default address to start the live test server is localhost:8081. See LiveServerTestCase src code.
# Launch the live server's thread
specified_address = os.environ.get(
'DJANGO_LIVE_TEST_SERVER_ADDRESS', 'localhost:8081')
As the OS seems to be complaining about the port 8081 being in use. One can quickly pick another port (say 9000) by running the tests like below.
/manage.py test functional_tests --liveserver :9000
However, explicitly setting the DJANGO_LIVE_TEST_SERVER_ADDRESS would be ideal.
export DJANGO_LIVE_TEST_SERVER_ADDRESS="localhost:9000"