Re: django unittest with post not working

2016-02-05 Thread JAMES DAMILD ETIENNE
Yes but it stillnot saving the data after posting :/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this

Re: django unittest with post not working

2016-02-04 Thread Dheerendra Rathor
302 looks Okay as you're being redirect to LOGIN_REDIRECT_URL. During posting new branch, start your URL with `/` like r = self.client.post('/brand/new/', {'name': 'poko'}) On Thu, 4 Feb 2016 at 22:32 JAMES DAMILD ETIENNE wrote: > Hi , will some help with this please , >

django unittest with post not working

2016-02-04 Thread JAMES DAMILD ETIENNE
Hi , will some help with this please , I am writting a django unittest for a web app. when i do a post like that : r = self.client.post(reverse('login'), {'username': 't...@hotmail.com', 'password': '12345'}) print 'logins page load>>', r.status_code the status code returns 302. it's