I have added @login_required decorator in one of my view functions.
When I request page that has login decorator, I get routed to this
url:
http://127.0.0.1:8000/login/?next=/post/create/

After I login, it goes to this url:
http://127.0.0.1:8000/accounts/profile/

What I want it to do is, send the user back to page they were on,
before login page.  It doesn't even do this:
?next=/post/create/

I want it to go to url that they were on earlier before login eg. :
http://127.0.0.1:8000/post/create/

rather than http://127.0.0.1:8000/accounts/profile/.

Any idea how I can do this?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to