alternative to LOGIN_REDIRECT_URL in django 1.9

1

I know that even in Django 1.9 it works LOGIN_REDIRECT_URL , what happens I want an alternative to LOGIN_REDIRECT_URL

since support for this will be removed in Django 1.10

    
asked by wootsbot 15.04.2016 в 02:06
source

1 answer

3

According to the online version notes LOGIN_URL and LOGIN_REDIRECT_URL will not be disapproved in the version of Django 1.10 only the option to use the dotted Python path is removed.

  

The ability to use a dotted Python path for the LOGIN_URL and   LOGIN_REDIRECT_URL settings is removed.

This will be removed.

LOGIN_REDIRECT_URL = 'path.a.vistas.login'

But you can still use

LOGIN_REDIRECT_URL = '/login/'

or

LOGIN_REDIRECT_URL = 'login' 

Notes:

answered by 15.04.2016 / 05:23
source