Thursday, September 2, 2010

Re: django,how to read data from database when db has large volume of data

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 <daniel@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-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.




--
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-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment