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 |
|
Bonus: it will work for all third-party apps too.
Tips and Tricks Programming Django 4.2 Django 3.2 Django 2.2
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django GDPR Cookie Consent app
For Django websites that use cookies.