In Django, several websites can be tested in the same time by specifying the port. By default, with the command:
1 | python manage.py runserver |
the port is 8000. But another website can be launched on the port 8001 for example using the command:
1 | python manage.py runserver 8001 |
and then enter the url:
1 | http://127.0.0.1:8001 |
References
Links | Site |
---|---|
Run Django on multiple ports | stackoverflow |
django change default runserver port | stackoverflow |
manage.py | django doc |