buddy did i convince u..?,,,reply soon...solution to my problem,, On Thu, Sep 2, 2010 at 2:19 PM, girish shabadimath <girishmss.1...@gmail.com > wrote:
> actually i wanted to access values from database and use those values in > url unittesting,,, > > like: > response = self.client.get('def/defect/', {'*ID*':*id*}) > self.failUnlessEqual(response.status_code, 200) > > how to get id from database..?,,,and also i want this test to be done for > each id in database,,hw to proceed..? > > > ,,,this may sound silly but plz help..!!!! > > > > > > On Thu, Sep 2, 2010 at 1:39 PM, Daniel Roseman <dan...@roseman.org.uk>wrote: > >> On Sep 2, 8:17 am, girishmss <girishmss.1...@gmail.com> wrote: >> > Hi folks,im working on django project,,is there a way to access >> db >> > without using fixtures,, as fixtures is not working in my project,,i >> > want to test urls of type: >> > >> > /abc/xyz/123 where '123' comes from database., >> > >> > and that database contains lots of ids( ex:123 ) i >> > dont want to loop through each ids and want to get dis unittest >> > working.. >> > >> > any help or related links is appreciated >> >> Sorry, this message makes no sense at all. What do fixtures have to do >> with reading from the database? Why can't you do a normal ORM call? >> -- >> DR. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-us...@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> > > > -- > Girish M S > -- Girish M S -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.