Ich möchte, dass es auf "/ login" statt auf "/ accounts / login"
Gibt es eine Einstellung, die ich ändern kann?
Fügen Sie LOGIN_URL = '/login' zu Ihrer settings.py
LOGIN_URL = '/login'
Siehe die Dokumente für mehr.
Sie können auch Folgendes tun:
@login_required (login_url = '/ login /')
Siehe die Dokumentation: Ссылка
Tags und Links python django configuration authentication login