I'm testing a django application with twill, and django-test-utils, and it's not logging me in.
I think it's not setting the django session cookie. I go to a webpage (in twill) that calls request.session.set_test_cookie()
, and after that call returns, twill.show_cookies()
(which should print out the cookies), shows no cookies. In another page/view, request.session.test_cookie_worked()
returns False
.
Oddly, another page, calls request.set_cookie(...)
to manually set a cookie, and that works. twill.show_cookies()
shows that cookie. So some cookies are working, but the session middleware just doesn't seem to be working...
What could be going on? How do I get the django session cookie to be set in twill?
Some other people have had similar problems, example on django-users, comment about cookies on another twill/django script