About the LOGIN_URL Setting

Set the LOGIN_URL setting to your actual login URL view name, so that you don't have to pass it to every @login_required decorator:

1
LOGIN_URL = "accounts:login"

Bonus: it will work for all third-party apps too.

Tips and Tricks Programming Django 4.2 Django 3.2 Django 2.2