mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-12-04 23:44:07 +03:00
Latest docs build
This commit is contained in:
parent
44eea9497d
commit
3e523d11cc
|
@ -106,11 +106,11 @@
|
||||||
|
|
||||||
<div id="main-content" class="span9">
|
<div id="main-content" class="span9">
|
||||||
<p><a class="github" href="https://github.com/tomchristie/django-rest-framework/blob/restframework2/djangorestframework/views.py"><span class="label label-info">views.py</span></a></p>
|
<p><a class="github" href="https://github.com/tomchristie/django-rest-framework/blob/restframework2/djangorestframework/views.py"><span class="label label-info">views.py</span></a></p>
|
||||||
|
<h1 id="views">Views</h1>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p>Django's class based views are a welcome departure from the old-style views.</p>
|
<p>Django's class based views are a welcome departure from the old-style views.</p>
|
||||||
<p>— <a href="http://reinout.vanrees.org/weblog/2011/08/24/class-based-views-usage.html">Reinout van Rees</a></p>
|
<p>— <a href="http://reinout.vanrees.org/weblog/2011/08/24/class-based-views-usage.html">Reinout van Rees</a></p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<h1 id="views">Views</h1>
|
|
||||||
<p>REST framework provides a simple <code>APIView</code> class, built on Django's <code>django.generics.views.View</code>. The <code>APIView</code> class ensures five main things:</p>
|
<p>REST framework provides a simple <code>APIView</code> class, built on Django's <code>django.generics.views.View</code>. The <code>APIView</code> class ensures five main things:</p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>Any requests inside the view will become <code>Request</code> instances.</li>
|
<li>Any requests inside the view will become <code>Request</code> instances.</li>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user