aboutsummaryrefslogtreecommitdiffstats
path: root/docs/examples/modelviews.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/modelviews.rst')
-rw-r--r--docs/examples/modelviews.rst9
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/examples/modelviews.rst b/docs/examples/modelviews.rst
index 7cc78d39..c60c9f24 100644
--- a/docs/examples/modelviews.rst
+++ b/docs/examples/modelviews.rst
@@ -25,7 +25,14 @@ Here's the model we're working from in this example:
.. include:: ../../examples/modelresourceexample/models.py
:literal:
-To add an API for the model, all we need to do is create a Resource for the model, and map a couple of views to it in our urlconf.
+To add an API for the model, first we need to create a Resource for the model.
+
+``resources.py``
+
+.. include:: ../../examples/modelresourceexample/resources.py
+ :literal:
+
+Then we simply map a couple of views to the Resource in our urlconf.
``urls.py``