I want it to redirect to "/login" instead of "/accounts/login"
Is there a setting I can change?
Add LOGIN_URL = '/login'
to your settings.py
See the docs for more.
You can also do the following:
@login_required(login_url='/login/')
See the docs: https://docs.djangoproject.com/en/dev/topics/auth/default/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With