How to use django model outside of django framework?

What sites use tastypie as their webservice API framework? How does tastypie compare to piston or django-rest-framework with regards to long term maintainability?

  • tastypie has the features we are interested in, and we don't care much about the web-browsable api feature that django-rest provides. Are there any issues we need to be aware of so we are better prepared or work around them as we build our site?

  • Answer:

    See my blog post about Django RESTful APIs at http://pydanny.com/choosing-an-api-framework-for-django.html

Daniel Roy Greenfeld at Quora Visit the source

Was this solution helpful to you?

Other answers

I would advice to build a proof of concept in both django-rest-framework and tastypie. They both have features you might want and limitation you don't want. Build an API with them and then try to do something very silly (for instance: Have a model with a foreign key to another model which has a slug. Then try to implement an API in which you can specify that relation using a slug without exposing the related object) That's really the only way to discover if the framework is suitable for your project or not. Also keep in mind that both those frameworks are tied close to the models, which in turn exposes a lot of information about your code structure.

Harro van der Klauw

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.