Django settings configuration file ALLOWED_HOSTS

Django settings configuration file ALLOWED_HOSTS

 

ALLOWED_HOSTS list In order to prevent hacking, only allow the ip addresses in the list to access

 

 Fill in the "*" to make all URLs can access the Django project
, you can do this when the project is tested. So that the protection is lost

 

Guess you like

Origin www.cnblogs.com/tracydzf/p/12691383.html