Re: REST XML + HTML API suggestions

2010-09-21 Thread Brian Bouterse
I typically check the content type and have the response match the content type of the incoming request. I also typically have this be the only decision that lives within views.py, and in turn calls out to code in other modules to handle xml and/or html presentation respectively. Also, I would

Re: REST XML + HTML API suggestions

2010-09-21 Thread Alexandre González
I'm using django-piston in my app, and it's incredible. You can use XML in your RESTful API, but if you like to user another emitter as JSON, Pickle... you can do at-the-moment! Incredible! On Tue, Sep 21, 2010 at 11:11, vikalp sahni wrote: > Hi, > > You might want to

Re: REST XML + HTML API suggestions

2010-09-21 Thread vikalp sahni
Hi, You might want to have a look at django-piston. http://bitbucket.org/jespern/django-piston/wiki/Home Its a nice project to give rest full interface to your models. And for some specific logic also you can tweak the handlers to get desired results. Regards, //Vikalp On Tue, Sep 21, 2010

REST XML + HTML API suggestions

2010-09-20 Thread Brendon
Hi all, I want to use DJango to implement an XML based RESTful API and a website together using DJango. I am wondering if anyone here is aware of any tutorials on ways of achieving this in DJango without duplicating too much code? Basically what I want to achieve is to use the same core logic