[pylons-discuss] login django app. CSRF verification failed

2014-09-23 Thread Artem B
Hi , i'm trying use webtest for simple login, got: AppError: Bad response: 403 FORBIDDEN. CSRF verification failed could you help me please. where my mistake ? class AuthTest(unittest.TestCase): def test_login_form(self): test_app = TestApp('http://127.0.0.1:8000')

[pylons-discuss] login django app . CSRF verification failed

2014-09-23 Thread Artem B
Hi , i'm trying use webtest for simple login, got: AppError: Bad response: 403 FORBIDDEN. CSRF verification failed could you help me please. Where my mistake ? class AuthTest(unittest.TestCase): def test_login_form(self): test_app = TestApp('http://127.0.0.1:8000')

[pylons-discuss] Re: login django app . CSRF verification failed

2014-09-23 Thread Gael Pasgrimaud
Hi, On Tuesday, September 23, 2014 6:54:19 AM UTC+2, Artem B wrote: Hi , i'm trying use webtest for simple login, got: AppError: Bad response: 403 FORBIDDEN. CSRF verification failed could you help me please. Where my mistake ? class AuthTest(unittest.TestCase): def