I have a view function:
@login_required def myview(): # do something # respond something pass
How can I specify the exact URL for this view function to be redirected?
LOGIN_URL in your settings
Reference: