views:

74

answers:

2

In Django login, we see a variable called "next" to redirect to the next page after login. How to control this variable?

+3  A: 

In settings.py define LOGIN_REDIRECT_URL

celopes
+1  A: 

If you are using django.contrib.auth.views.redirect_to_login you can pass in the url as next which is a required argument.

DrBloodmoney