-
[Django] Invalid HTTP_HOST header:, You may need to add 'x.x.x.x' to ALLOWED_HOSTSPrograming/Python 2019. 4. 8. 10:25
서버 외부에서 사이트에 접근할 때 발생하는 에러인데요.
해당 서버 주소를 장고 설정파일에 추가해주면 손쉽게 해결할 수 있습니다.
setting.py
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', 'x.x.x.x'] 'Programing > Python' 카테고리의 다른 글
[python] string formater (0) 2019.04.08 [Django] 서버주소 0.0.0.0 (0) 2019.04.08 Emulating numeric types (0) 2019.03.29 [python] python setting on QtCreator (0) 2016.10.07 python-settuptools (0) 2012.06.16