<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: restview</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/restview.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2008-09-21T20:47:16+00:00</updated><author><name>Simon Willison</name></author><entry><title>RestView - a class for creating a view that dispatches based on request.method</title><link href="https://simonwillison.net/2008/Sep/21/restview/#atom-tag" rel="alternate"/><published>2008-09-21T20:47:16+00:00</published><updated>2008-09-21T20:47:16+00:00</updated><id>https://simonwillison.net/2008/Sep/21/restview/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.djangosnippets.org/snippets/1071/"&gt;RestView - a class for creating a view that dispatches based on request.method&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
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.

    &lt;p&gt;&lt;small&gt;&lt;/small&gt;Via &lt;a href="http://jhcore.com/2008/09/20/getting-restful-with-webpy/"&gt;Getting RESTful with web.py&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/django"&gt;django&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/django-snippets"&gt;django-snippets&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/python"&gt;python&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/rest"&gt;rest&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/restful"&gt;restful&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/restview"&gt;restview&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/views"&gt;views&lt;/a&gt;&lt;/p&gt;



</summary><category term="django"/><category term="django-snippets"/><category term="python"/><category term="rest"/><category term="restful"/><category term="restview"/><category term="views"/></entry></feed>