django 报错 DisallowedHost at Invalid HTTP_HOST header: ‘*.com‘. You may need to add ‘*.com‘ to ALL

Django error reporting and resolution

DisallowedHost at Invalid HTTP_HOST header: ‘.com’. You may need to add '.com’ to ALLOWED_HOSTS.

The error is reported as follows:

Djando error

Solution

Add trust URL to setting.py


ALLOWED_HOSTS = ['*.com']

Done

Guess you like

Origin blog.csdn.net/gixome/article/details/132781761