I'm trying to use test.client to test some pages that are login protected.
1. the docs say that syntax is: """ c = Client() c.login(username='fred', password='secret') # Now you can access a login protected view """ while the signature is: def login(self, path, username, password, **extra): 2. the response of c.get() has correct content but no context and no template. Any possible explanation? A NOTE to save time to people that may read this while trying to debug the c.login. It's important you LOGIN_URL end with a slash, if not - as was my case- c.get issued by c.login will receive a 301 instead of a 302. That allows the browser to continue, not the login method. ;-( sandro *;-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

