
If you wish to run you django server in other than port 8000 here is a solution for you.
SOLUTION-1:
- Create a bash script like the following
#!/bin/bash
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.
ALTERNATIVE SOLUTION:
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
This type of error usually appears either when the compiled library is for the wrong architecture (e.g. 32 bit library on 64 bit host) or there is a missing underlying library, like msvcr not being up to date. I wish more information would be logged for this error.
To fix this:
pip install msvc-runtime