SoFunction
Updated on 2024-11-21

django change server port number method

1, we first stop the django service, press ctrl + c can stop the service. Then check the command explanation of django's runserver.

2, where the picture in the addrport means to increase the port means optional parameters

3, above this django modify server port number is the method I share with you all the content, I hope to give you a reference, but also hope that you support me more.

4、

5, at this time we can restart the server, and specify the port to start the service

6, we enter 127.0.0.1:8000 in the browser, you can access port 8000

7, we start the django development server, enter the command manage.pyrunserver default port is 8000.

8、

9. django can specify the port number when running the server

10、

11、

12、

13、/

14, open the browser, enter 127.0.0.1:8080, at this time we will find that we have modified the server's port/