Django project settings access whitelist

Set in setting.py The default is empty, and it can be accessed locally

ALLOWED_HOSTS = []

Fill in "*" to enable all URLs to access the Django project

ALLOWED_HOSTS = ['*']

 

 

Guess you like

Origin blog.csdn.net/weixin_48154829/article/details/108007363