Creating a hierarchy of objects in my api.py

2012-01-30 Thread St@n
Hello, I am playing around with tastypie and i want to create a hierarchy of data. What i currently have is this: class keywordResource(ModelResource): tweets = fields.ToManyField(timelineResource, 'tweets', full=True) class Meta: queryset = Keyword.objects.all() resourc

Django models

2012-01-30 Thread St@n
Hello, How do i ask django to query for a table that is already created in the database but not part of the models.py? the models.py is used to described the database and to create tables with that models.py. However i already have my tables created prior to creating the django app. How then do

Django model problem

2012-01-30 Thread St@n
Hi there, I am trying to create a RESTful API with a django website i have running. The project folder is called rosebud and inside the folder r2 lies my application. I have tried to retrieve objects by calling the Users table in django's default authentication model. But i have problems retriev