#22934 closed Bug (fixed)
INSTALLED_APPS must contain django.contrib.sessions for TestCase.client.login to work
Reported by: | Chris Jerdonek | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The documentation says that django.contrib.sessions
can be removed from INSTALLED_APPS
when using cookie-bases sessions:
https://docs.djangoproject.com/en/dev/topics/http/sessions/#using-cookie-based-sessions
However, following this guidance causes TestCase.client.login()
to break:
Change History (5)
comment:1 by , 10 years ago
Component: | Uncategorized → Documentation |
---|---|
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → Bug |
comment:3 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I removed the advice of removing django.contrib.sessions
from INSTALLED_APPS
as a solution to avoid creating the database tables due to the other side effects and filed a new ticket (#22986) for a proper solution.
Note:
See TracTickets
for help on using tickets.
Yep, has been raised in #20863 and #20915, but should be corrected in the meantime.