The article directories

  • Solution 1
  • Solution 2

Solution 1

To change the IP address, the default is 127.0.0.1. We can change it to 127.0.0.2, 127.0.0.3, etc.

For example, change the start command toThe manage. Py runserver then executes 127.0.0.2:6000

After modification, the specified url may be opened after the error as shown below, or directly cannot be opened. In this case, we also need to modify django Settings



Find the setting.py file first and put theALLOWED_HOSTS = []Modified toALLOWED_HOSTS = ['*']Can.

Solution 2

Open theSet up the> choosesystem> seeaboutIn theDevice nameIf it is Chinese, just change it into English. It must be all in English.



If the OS version is earlier than Windows 10, you can change the device name in my computer’s properties.