Mat*_*hew 5 python django django-1.5
I have updated to django 1.5 and am getting the following message:
SuspiciousOperation: Invalid HTTP_HOST header (you may need to set ALLOWED_HOSTS): localhost:8000
I have tried localhost, 127.0.0.1, localhost:8000 in ALLOWED_HOSTS. I have also tried ['*'] all without success.
Anybody any ideas where I am going wrong? Works as expected with DEBUG=False
| 归档时间: |
|
| 查看次数: |
4128 次 |
| 最近记录: |