Change default runserver port django
If you wish to run you django server in other than port 8000 here is a solution for you.
- Create a bash script like the following
exec ./manage.py runserver 0.0.0.0:<your_port>
Note: change <your_port> with the port number you want.
- Save it as runserver in the same dir where manage.py is present.
- and run it as ./runserver.
Actually the easiest way to change (only) port in development Django server is just like:
python manage.py runserver <your_port>
Note: change <your_port> with the port number you want