문제

I've started Django server on localhost:8000 and everything wold be okay, but after clicking on different tabs it changes port to localhost:8002/othertab, how can I set 8000 for default port?

도움이 되었습니까?

해결책

If you want to change the server’s IP, pass it along with the port. So to listen on all public IPs (useful if you want to show off your work on other computers), use:

 $python manage.py runserver 127.0.0.1:8002

For more details click here .

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top