Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#16517 closed Bug (duplicate)

Django tests fail if project LOGIN_URL setting doesn't end with '/login/'

Reported by: bjornkri Owned by: nobody
Component: contrib.auth Version: 1.3
Severity: Normal Keywords:
Cc: bjornkri@… Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no


To reproduce:

Start a new project, edit and add:

LOGIN_URL = '/foobar/'
        'ENGINE': 'django.db.backends.sqlite3',

(Adding sqlite3 to the database engine setting so the tests will run)

Running ./ test will now fail.

The culprit is in test_password_change_done_fails() in /django/contrib/auth/tests/


Patch attached that replaces his line with


Attachments (1)

test_password_change_done_fails.diff (628 bytes) - added by bjornkri 5 years ago.

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by bjornkri

comment:1 Changed 5 years ago by bjornkri

  • Cc bjornkri@… added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 5 years ago by aaugustin

  • Resolution set to duplicate
  • Status changed from new to closed

This was reported in #16413 — which is the first search result for "LOGIN_URL" :)

comment:3 Changed 5 years ago by bjornkri

Ah. At least now we have a result for "test_password_change_done_fails" which is what I went looking for ;)

Note: See TracTickets for help on using tickets.
Back to Top