Test locally 2 or more websites with Django

Published: January 27, 2019

DMCA.com Protection Status

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