> As reported on :http://stackoverflow.com/questions/3817808/unable-to-
> login-to-admin-site-in-localhost
>
> I can't login to the admin site on localhost.
>
> I try with firefox, IE.
>
> I try using the 127.0.0.1:8000 address. Also, I set the
> SESSION_COOKIE_DOMAIN to localhost, localhost:8000
>
Make sure you have localhost pointing to 127.0.0.1 in your /etc/hosts,
set your SESSION_COOKIE_DOMAIN to 'localhost' (nb: port numbers are
NOT part of the hostname) and start the dev server with the
appropriate domain and port, ie:
./manage.py runserver localhost:8000
FWIW, I never had to mess with SESSION_COOKIE_DOMAIN in any Django
version since the 0.96 days.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment