﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
21331	Could not login user using test.client.Client.login when 'django.contrib.sessions' is not in settings.INSTALLED_APPS	anonymous	nobody	"Hello,

I'm using django session based on cache, so I don't put 'django.contrib.sessions' in INSTALLED_APPS. Everything works fine except the tests (user login attempt always fails). 

In django.test.client.Client.login line 549, there is condition:

{{{

if user and user.is_active \
     and 'django.contrib.sessions' in settings.INSTALLED_APPS:
   ...
}}}

Why do we need this part:

'django.contrib.sessions' in settings.INSTALLED_APPS

?"	Uncategorized	closed	Testing framework	1.6-beta-1	Normal	duplicate	test, client, login		Accepted	0	0	0	0	0	0
