diff options
| author | Tom Christie | 2012-10-02 19:54:24 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-10-02 19:54:24 +0100 |
| commit | e1518de68fa9ad4b2628894abf17924e386ccbda (patch) | |
| tree | b1d190f6bd08ce087cf0a2d3e8cd681b5e7e7d04 /docs/api-guide/views.md | |
| parent | 31b06f1721f98730556dc56927b985e4032788c3 (diff) | |
| parent | d1b99f350aded62fe480f7dc4749cd63d52715d2 (diff) | |
| download | django-rest-framework-e1518de68fa9ad4b2628894abf17924e386ccbda.tar.bz2 | |
Merge branch 'restframework2' of https://github.com/tomchristie/django-rest-framework into restframework2
Diffstat (limited to 'docs/api-guide/views.md')
| -rw-r--r-- | docs/api-guide/views.md | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/docs/api-guide/views.md b/docs/api-guide/views.md index e7f12b45..a615026f 100644 --- a/docs/api-guide/views.md +++ b/docs/api-guide/views.md @@ -1,6 +1,6 @@ <a class="github" href="decorators.py"></a> <a class="github" href="views.py"></a> -# Views +# Class Based Views > Django's class based views are a welcome departure from the old-style views. > @@ -110,4 +110,17 @@ Ensures that any `Response` object returned from the handler method will be rend You won't typically need to override this method. -[cite]: http://reinout.vanrees.org/weblog/2011/08/24/class-based-views-usage.html
\ No newline at end of file +--- + +# Function Based Views + +> Saying [that Class based views] is always the superior solution is a mistake. +> +> — [Nick Coghlan][cite2] + +REST framework also gives you to work with regular function based views... + +**[TODO]** + +[cite]: http://reinout.vanrees.org/weblog/2011/08/24/class-based-views-usage.html +[cite2]: http://www.boredomandlaziness.org/2012/05/djangos-cbvs-are-not-mistake-but.html
\ No newline at end of file |
