Hello,

I have the following situation:

1) User goes to a restricted area and is offered a chance to login
(@login_required decorator used)
2) User logs in, and then is automatically returned to this page via ?
next={{ request.path }} in the HTML template

This works fine, after logging in the user is returned to the correct
page.

The problem is, if the user doesn't already have an account, I get
into this situation:

1) User goes to a restricted area and is offered a chance to login
(@login_required decorator used)
2) User doesn't have an account, so attempts to create one, and clicks
on the 'Create New Account link'. The problem is the link now looks
like: "..../create_account/?next=/Sign_In/"
3) After creating the account, the user is redirected to the sign in
page, but _not the page they visted 2 steps back_

Is there an ideal way to fix this? Basically, if you click on 'create
an account' from the sign_in page, there should be some way to return
to the page you were at before being directed to the sign in page.



--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to