Programing/Python
[Django] Invalid HTTP_HOST header:, You may need to add 'x.x.x.x' to ALLOWED_HOSTS
mjune.kim
2019. 4. 8. 10:25
서버 외부에서 사이트에 접근할 때 발생하는 에러인데요.
해당 서버 주소를 장고 설정파일에 추가해주면 손쉽게 해결할 수 있습니다.
setting.py
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', 'x.x.x.x'] |