Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
91cee26a
Commit
91cee26a
authored
Dec 30, 2011
by
Marko Tibold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some initial refactoring of the docs.
parent
500b0dcd
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
31 deletions
+21
-31
docs/conf.py
+2
-2
docs/examples.rst
+9
-0
docs/examples/blogpost.rst
+0
-2
docs/examples/modelviews.rst
+0
-2
docs/examples/objectstore.rst
+0
-2
docs/examples/pygments.rst
+0
-2
docs/examples/sandbox.rst
+0
-2
docs/examples/views.rst
+0
-2
docs/index.rst
+10
-17
No files found.
docs/conf.py
View file @
91cee26a
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
import
sys
,
os
import
sys
,
os
sys
.
path
.
insert
(
0
,
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
)))
sys
.
path
.
insert
(
0
,
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
)))
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
)),
'djangorestframework'
))
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
)),
'djangorestframework'
))
# for documenting the library
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
)),
'examples'
))
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
)),
'examples'
))
# for importing settings
import
settings
import
settings
from
django.core.management
import
setup_environ
from
django.core.management
import
setup_environ
setup_environ
(
settings
)
setup_environ
(
settings
)
...
...
docs/examples.rst
0 → 100644
View file @
91cee26a
.. toctree::
:maxdepth: 1
examples/views
examples/modelviews
examples/objectstore
examples/pygments
examples/blogpost
examples/sandbox
docs/examples/blogpost.rst
View file @
91cee26a
.. _blogposts:
Blog Posts API
Blog Posts API
==============
==============
...
...
docs/examples/modelviews.rst
View file @
91cee26a
.. _modelviews:
Getting Started - Model Views
Getting Started - Model Views
-----------------------------
-----------------------------
...
...
docs/examples/objectstore.rst
View file @
91cee26a
.. _objectstore:
Object Store API
Object Store API
================
================
...
...
docs/examples/pygments.rst
View file @
91cee26a
.. _codehighlighting:
Code Highlighting API
Code Highlighting API
=====================
=====================
...
...
docs/examples/sandbox.rst
View file @
91cee26a
.. _sandbox:
Sandbox Root API
Sandbox Root API
================
================
...
...
docs/examples/views.rst
View file @
91cee26a
.. _views:
Getting Started - Views
Getting Started - Views
-----------------------
-----------------------
...
...
docs/index.rst
View file @
91cee26a
...
@@ -87,24 +87,23 @@ Using Django REST framework can be as simple as adding a few lines to your urlco
...
@@ -87,24 +87,23 @@ Using Django REST framework can be as simple as adding a few lines to your urlco
Django REST framework comes with two "getting started" examples.
Django REST framework comes with two "getting started" examples.
#. :
ref:`
views`
#. :
doc:`examples/
views`
#. :
ref:`
modelviews`
#. :
doc:`examples/
modelviews`
Examples
Examples
--------
--------
There are a few real world web API examples included with Django REST framework.
There are a few real world web API examples included with Django REST framework.
#. :
ref:`
objectstore` - Using :class:`views.View` classes for APIs that do not map to models.
#. :
doc:`examples/
objectstore` - Using :class:`views.View` classes for APIs that do not map to models.
#. :
ref:`codehighlighting
` - Using :class:`views.View` classes with forms for input validation.
#. :
doc:`examples/pygments
` - Using :class:`views.View` classes with forms for input validation.
#. :
ref:`blogposts
` - Using :class:`views.ModelView` classes for APIs that map directly to models.
#. :
doc:`examples/blogpost
` - Using :class:`views.ModelView` classes for APIs that map directly to models.
All the examples are freely available for testing in the sandbox:
All the examples are freely available for testing in the sandbox:
http://api.django-rest-framework.org
http://api.django-rest-framework.org
(The :ref:`sandbox` resource is also documented.)
(The :doc:`examples/sandbox` resource is also documented.)
How Tos, FAQs & Notes
How Tos, FAQs & Notes
...
@@ -136,19 +135,13 @@ Library Reference
...
@@ -136,19 +135,13 @@ Library Reference
library/status
library/status
library/views
library/views
Example
s
Reference
Example Reference
-----------------
-
-----------------
.. toctree::
.. toctree::
:maxdepth:
1
:maxdepth:
2
examples/views
examples.rst
examples/modelviews
examples/objectstore
examples/pygments
examples/blogpost
examples/sandbox
howto/mixin
Indices and tables
Indices and tables
------------------
------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment