Simon Willison’s Weblog

Subscribe

4 items tagged “views”

2009

CouchDB View Cookbook for SQL Jockeys. This demystified CouchDB views for me. From “CouchDB: The Definitive Guide”, the free online manual.

# 26th November 2009, 1:20 pm / cookbook, couchdb, sqll, views

2008

RestView—a class for creating a view that dispatches based on request.method (via) I finally got around to writing up a simple approach I’ve been using for REST-style view functions in Django that dispatch based on request.method.

# 21st September 2008, 8:47 pm / django, django-snippets, python, rest, restful, restview, views

2007

If you only remember one thing about handling non-HTML output via Django: know that you can use the HttpResponse object as if it were a file. Writing to such an object and returning it will give you the output you wrote. It's a very simple concept, but one that translates well to third-party libraries.

Alex de Landgraaf

# 3rd December 2007, 8:44 pm / alex-de-landgraaf, django, httpresponse, python, views

CouchDB “Joins”. Different approaches to indexing a blog post and its associated comments in the non-relational CouchDB.

# 25th October 2007, 8:27 am / christopher-lenz, couchdb, databases, erlang, joins, relational, views