Allowed Hosts

94 views
Skip to first unread message

deJa

unread,
Jul 6, 2013, 11:33:09 PM7/6/13
to django...@googlegroups.com
Hello, 
I'm developing an application with 1.6b1 and getting "ERROR: Invalid HTTP_HOST header: www.foo.com.'.You may need to add u'www.foo.com.' to ALLOWED_HOSTS. 

And I'm getting same error with my naked domain or server's IP address like '.You may need to add u'.foo.com.'  or '.You may need to add u'xxx.xxx.xxx.xxx'

The thing is all of these 3 hosts are already in allowed hosts in my settings file as 
ALLOWED_HOSTS = [u'.foo.com', u'www.foo.com', u'xxx.xxx.xxx.xxx'] 

In the mail body it only says "No stack trace available Request repr() unavailable."

So, is this a bug or do I have an error somewhere or do you need more data to get a conclusion?

Thanks in advance.

Spindel

unread,
Mar 29, 2014, 5:54:09 PM3/29/14
to django...@googlegroups.com
Did you find any solution for this? I have the same problem.
Reply all
Reply to author
Forward
0 new messages