views:

168

answers:

3

Hello.

I'm developing an advertising site. Want to use Web-Services for the requests. I mean, a publisher site will put a JS snippet and it will pull a banner through a REST GET.

Is this framework mature enough to implement this functionality?

Thanks

A: 

Django is certainly mature enough. It's powering more than a dozen high-profile sites in production. Piston on the other hand, I wouldn't know, except for bitbucket.org I don't know of any other "high-profile" sites that use it. It doesn't sound like you need a complex framework on top of django just to handle REST. You could easily implement a RESTful service on top of django without using any other specific library.

Vasil
I disagree, writing up your own RESTful service can be a pain, particularly if you have a lot of models. django-piston may not be the best choice, but using some kind of framework for REST as well frees you from having to write cases for each of your models. You basically just create a straightforward Handler object for each model and then the framework takes care of the rest.
Jordan Reiter
@Jordan Exactly, if you have many models exposed through REST. OP's case sounds like he has an advertisement model with PUT/POST and GET methods to it. That's why it doesn't sound like he needs to set up another library for REST.
Vasil
@Vasil Good point.
santiagobasulto
A: 

I can't answer "is it mature enough." We are still evaluating our options ourselves.

However, you might want to check out these:

golliher
+2  A: 

I am currently using it and it's good enough for my needs, which are fairly simple (mostly just an easy way to set up a read-only API for model data). I do have a couple of criticisms:

  1. It doesn't seem that jespern, the code's creator, is doing much in response to issues posted to bitbucket. Possibly an unfair criticism, and activity in the django-piston Google Group. Still it's frustrating to post an issue and encounter zero response whatsoever.

  2. It appears there are some inconsistencies or errors in the coding. For example, this issue that I posted. (I may pursue it further in the group).

Jordan Reiter
@Jordan This what i mean!!! This is a big issue. I mean, starting something that is not live enought is not a good idea!
santiagobasulto