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
b9177f74
Commit
b9177f74
authored
Sep 01, 2012
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs tweak for first docs deployment
parent
5d21e422
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
7 deletions
+27
-7
README.md
+11
-1
djangorestframework/runtests/runtests.py
+3
-4
docs/index.md
+12
-2
docs/template.html
+1
-0
No files found.
README.md
View file @
b9177f74
...
...
@@ -38,6 +38,16 @@ Install using `pip`...
**TODO**
# Development
To build the docs.
./mkdocs.py
To run the tests.
./djangorestframework/runtests/runtests.py
# Changelog
## 2.0.0
...
...
@@ -71,7 +81,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
[
twitter
]:
https://twitter.com/_tomchristie
[
docs
]:
http
s://github.com/tomchristie/django-rest-framework/blob/restframework2/docs/index.md
[
docs
]:
http
://tomchristie.github.com/django-rest-framework/
[
urlobject
]:
https://github.com/zacharyvoase/urlobject
[
markdown
]:
http://pypi.python.org/pypi/Markdown/
[
pyyaml
]:
http://pypi.python.org/pypi/PyYAML
...
...
djangorestframework/runtests/runtests.py
100644 → 100755
View file @
b9177f74
'''
Created on Mar 10, 2011
#!/usr/bin/env python
@author: tomchristie
'''
# http://ericholscher.com/blog/2009/jun/29/enable-setuppy-test-your-django-apps/
# http://www.travisswicegood.com/2010/01/17/django-virtualenv-pip-and-fabric/
# http://code.djangoproject.com/svn/django/trunk/tests/runtests.py
...
...
@@ -13,6 +10,7 @@ os.environ['DJANGO_SETTINGS_MODULE'] = 'djangorestframework.runtests.settings'
from
django.conf
import
settings
from
django.test.utils
import
get_runner
def
usage
():
return
"""
Usage: python runtests.py [UnitTestClass].[method]
...
...
@@ -22,6 +20,7 @@ def usage():
Append a method name if you only want to test a specific method of that class.
"""
def
main
():
TestRunner
=
get_runner
(
settings
)
...
...
docs/index.md
View file @
b9177f74
...
...
@@ -21,8 +21,6 @@ The following packages are optional:
*
[
Markdown
][
markdown
]
(2.1.0+) - Markdown support for the self describing API.
*
[
PyYAML
][
yaml
]
(3.10+) - YAML content type support.
If you're installing using
`pip`
, all requirements and optional packages will be installed by default.
## Installation
**WARNING: These instructions will only become valid once this becomes the master version**
...
...
@@ -89,6 +87,18 @@ General guides to using REST framework.
*
[
Form overloading
][
formoverloading
]
*
[
Credits
][
credits
]
## Development
If you want to work on REST framework itself, clone the repository, then...
Build the docs:
./mkdocs.py
Run the tests:
./djangorestframework/runtests/runtests.py
## License
Copyright (c) 2011-2012, Tom Christie
...
...
docs/template.html
View file @
b9177f74
...
...
@@ -102,6 +102,7 @@ margin-top: 5px;
<ul
class=
"dropdown-menu"
>
<li><a
href=
"{{ base_url }}/topics/csrf{{ suffix }}"
>
Working with AJAX and CSRF
</a></li>
<li><a
href=
"{{ base_url }}/topics/formoverloading{{ suffix }}"
>
Browser based PUT, PATCH and DELETE
</a></li>
<li><a
href=
"{{ base_url }}/topics/credits{{ suffix }}"
>
Credits
</a></li>
</ul>
</li>
</ul>
...
...
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