Hask
Hask

Reputation: 13

Django admin URL visible redirect

I started a new Django project today and something is bothering me.

When I go to the Django admin login form, I'm redirected from mysite.com/admin/ to mysite.com/admin/login/?next=/admin/.

The only difference from this install and the previous I made some time ago is the Django version changing from 1.6 to 1.7. After some research I still don't have any clue on how to get back to a "clean" URL displaying.

Upvotes: 1

Views: 409

Answers (1)

Ondrej Slinták
Ondrej Slinták

Reputation: 31910

Admin redirection strategy has changed in Django 1.7. In other words, if you visit admin page other than /admin/login/ it'll use http redirect and append next=... to the querystring. I don't think it's possible to change it to the way it worked pre-1.7 right now.

Upvotes: 1

Related Questions