views:

184

answers:

2

My friend said, "Pylons is so much better for web services."

My other friend said, "You can modify Django in a way to do exactly whatever you like."

In Django, what is necessary to be modified (urls.py? models classes? settings?) in order to do "web services" with APIs and REST and versioning, etc etc.?

+1  A: 

Yes Django can be used for web services. Check out django-piston:

A mini-framework for Django for creating RESTful APIs.

Piston is a relatively small Django application that lets you create application programming interfaces (API) for your sites.

Mark Lavin
That means django can not be used as a webservice 'out of the box'
jpartogi
Django can be used as a webservice 'out of the box' (see S.Lott's answer) but this app was created to make it easier.
Mark Lavin
+2  A: 

Yes, we use it directly. We have view functions that respond to some URI's with serialized JSON or XML objects instead of pretty HTML pages.

S.Lott