You are privileged to get such a verbose error..
Exception Type: DisallowedHost at / Exception Value: Invalid HTTP_HOST header: 'django-env.vsvztq2hxp.us-west-1.elasticbeanstalk.com'. You may need to add 'django-env.vsvztq2hxp.us-west-1.elasticbeanstalk.com' to ALLOWED_HOSTS.
Just add django-env.vsvztq2hxp.us-west-1.elasticbeanstalk.com
to your ALLOWED_HOSTS
in settings.py
Do something like this
#in settings.py
ALLOWED_HOSTS = [ 'django-env.vsvztq2hxp.us-west-1.elasticbeanstalk.com', ...]
'frameworks > django' 카테고리의 다른 글
django내부 기능으로 i18n을 구현하자 (0) | 2019.08.26 |
---|---|
Django로 파일업로드 페이지 작성 (0) | 2019.08.13 |
Django - 클래스형 뷰 (0) | 2019.07.07 |
django 듀토리얼#4 : get /list, post /view만들기 (0) | 2019.06.30 |
django 듀토리얼#3 : get /write, post /save 만들기 (0) | 2019.06.29 |