Reputation: 2630
I have a problem with my google chrome and firefox (the only 2 browsers I have)
When run my django server with ./manage.py runserver 0.0.0.0:8000
and when I go to chrome or firefox and enter localhost:8000
chrome redirects to http://www.localhost:8000/
do you know what is the problem??
my hosts file is:
#
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost arch
127.0.0.1 example.com
Upvotes: 1
Views: 7800
Reputation: 2243
After setting PREPEND_WWW = False
and clear the browser cache, it works in Firefox and Chromium.
Upvotes: 0
Reputation: 2630
Well the problem was solved adding this line:
::1 localhost.localdomain localhost arch
in the /etc/hosts
file.
Upvotes: 2