There is also piston , which is the basis of Django for creating RESTful APIs. It has a slight learning curve, but fits well with Django.
If you want something lighter, Simon Willison has a very nice snippet that I used earlier that models HTTP methods well:
class ArticleView(RestView):
def GET(request, article_id):
return render_to_response("article.html", {
'article': get_object_or_404(Article, pk = article_id),
})
def POST(request, article_id):
article = get_object_or_404(Article, pk = article_id)
article.headline = request.POST['new_headline']
article.body = request.POST['new_body']
article.save()
return HttpResponseRedirect(request.path)
- REST, .