3 ms·
I see what you're saying. But I disagree that: Database = Model = Resource
by buro9 15y ago
I see what you're saying.
But I disagree that:
Database = Model = Resource
- obtu 15y agoThere's flexibility. I've gotten a lot of mileage of closely-related models inlined into a parent model to form a single resource (resource relationships annotated with full=True with TastyPie), but one isn't limited to that either; http://django-tastypie.rtfd.org/ http://django-tastypie.rtfd.org/ outlines the possibilities better than a short comment could.
- Pewpewarrows 15y agoThe parent comment was only pointing out how incredibly fast and easy it is to get started with TastyPie. The moment you decide to create an API resource that isn't a one-to-one mapping with a database table or Model, TastyPie is still able to come with you every step of the way.