Django - Login required redirect url -


if user not logged-in, want redirect admin page , when user logs in, should redirected previous url.

this how i'm doing:-

login_url = '/admin'  login_redirect_url = '/admin' 

the user redirected admin page after logging in, admin dashboard open, not next url. that's because url not django expecting.

this how url looks like.

http://127.0.0.1:8000/admin/login/?next=/admin/%3fnext%3d/movies/fav%253fpage%253d1 

what missing?

tried this. , worked.

login_url = '/admin/login/' 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -