I have a view function:
@login_required def myview(): # do something # respond something pass
How can I specify the exact URL f
add below code
LOGIN_REDIRECT_URL = 'path/to/url'
and then import this LOGIN_REDIRECT_URL in your views and add
`@login_required(login_url=LOGIN_REDIRECT_URL)`
to the top of your views you want to restrict it will work