mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 11:33:59 +03:00
updating docs for 0.2
This commit is contained in:
parent
b50492853f
commit
5591a71a13
|
@ -3,6 +3,13 @@
|
||||||
Setup
|
Setup
|
||||||
=====
|
=====
|
||||||
|
|
||||||
|
Installing into site-packages
|
||||||
|
-----------------------------
|
||||||
|
|
||||||
|
If you need to manually install Django REST framework to your ``site-packages`` directory, run the ``setup.py`` script::
|
||||||
|
|
||||||
|
python setup.py install
|
||||||
|
|
||||||
Template Loaders
|
Template Loaders
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
|
|
|
@ -24,3 +24,7 @@ There are a few things that can be helpful to remember when using CURL with djan
|
||||||
#. Or any other content type::
|
#. Or any other content type::
|
||||||
|
|
||||||
curl -X PUT -H 'Content-Type: application/json' --data-binary '{"foo":"bar"}' http://example.com/my-api/some-resource/
|
curl -X PUT -H 'Content-Type: application/json' --data-binary '{"foo":"bar"}' http://example.com/my-api/some-resource/
|
||||||
|
|
||||||
|
#. You can use basic authentication to send the username and password::
|
||||||
|
|
||||||
|
curl -X GET -H 'Accept: application/json' -u <user>:<password> http://example.com/my-api/
|
|
@ -30,15 +30,11 @@ Resources
|
||||||
|
|
||||||
* The ``djangorestframework`` package is `available on PyPI <http://pypi.python.org/pypi/djangorestframework>`_.
|
* The ``djangorestframework`` package is `available on PyPI <http://pypi.python.org/pypi/djangorestframework>`_.
|
||||||
* We have an active `discussion group <http://groups.google.com/group/django-rest-framework>`_ and a `project blog <http://blog.django-rest-framework.org>`_.
|
* We have an active `discussion group <http://groups.google.com/group/django-rest-framework>`_ and a `project blog <http://blog.django-rest-framework.org>`_.
|
||||||
* Bug reports are handled on the `issue tracker <https://bitbucket.org/tomchristie/django-rest-framework/issues?sort=version>`_.
|
* Bug reports are handled on the `issue tracker <https://github.com/tomchristie/django-rest-framework/issues>`_.
|
||||||
* There is a `Jenkins CI server <http://datacenter.tibold.nl/job/djangorestframework/>`_ which tracks test status and coverage reporting. (Thanks Marko!)
|
* There is a `Jenkins CI server <http://datacenter.tibold.nl/job/djangorestframework/>`_ which tracks test status and coverage reporting. (Thanks Marko!)
|
||||||
* Get with in touch with `@thisneonsoul <https://twitter.com/thisneonsoul>`_ on twitter.
|
|
||||||
|
|
||||||
Any and all questions, thoughts, bug reports and contributions are *hugely appreciated*.
|
Any and all questions, thoughts, bug reports and contributions are *hugely appreciated*.
|
||||||
|
|
||||||
We'd like for this to be a real community driven effort, so come say hi, get involved, and get forking! (See: `Forking a Bitbucket Repository
|
|
||||||
<http://confluence.atlassian.com/display/BITBUCKET/Forking+a+Bitbucket+Repository>`_, or `Fork A GitHub Repo <http://help.github.com/fork-a-repo/>`_)
|
|
||||||
|
|
||||||
Requirements
|
Requirements
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
@ -46,8 +42,8 @@ Requirements
|
||||||
* Django (1.2, 1.3 supported)
|
* Django (1.2, 1.3 supported)
|
||||||
|
|
||||||
|
|
||||||
Installation & Setup
|
Installation
|
||||||
--------------------
|
------------
|
||||||
|
|
||||||
|
|
||||||
You can install Django REST framework using ``pip`` or ``easy_install``::
|
You can install Django REST framework using ``pip`` or ``easy_install``::
|
||||||
|
@ -59,21 +55,17 @@ Or get the latest development version using mercurial or git::
|
||||||
hg clone https://bitbucket.org/tomchristie/django-rest-framework
|
hg clone https://bitbucket.org/tomchristie/django-rest-framework
|
||||||
git clone git@github.com:tomchristie/django-rest-framework.git
|
git clone git@github.com:tomchristie/django-rest-framework.git
|
||||||
|
|
||||||
Or you can download the current release:
|
Or you can `download the current release <http://pypi.python.org/pypi/djangorestframework>`_.
|
||||||
|
|
||||||
* `django-rest-framework-0.1.tar.gz <https://bitbucket.org/tomchristie/django-rest-framework/downloads/django-rest-framework-0.1.tar.gz>`_
|
Setup
|
||||||
* `django-rest-framework-0.1.zip <https://bitbucket.org/tomchristie/django-rest-framework/downloads/django-rest-framework-0.1.zip>`_
|
-----
|
||||||
|
|
||||||
and then install Django REST framework to your ``site-packages`` directory, by running the ``setup.py`` script::
|
To add Django REST framework to a Django project:
|
||||||
|
|
||||||
python setup.py install
|
|
||||||
|
|
||||||
**To add django-rest-framework to a Django project:**
|
|
||||||
|
|
||||||
* Ensure that the ``djangorestframework`` directory is on your ``PYTHONPATH``.
|
* Ensure that the ``djangorestframework`` directory is on your ``PYTHONPATH``.
|
||||||
* Add ``djangorestframework`` to your ``INSTALLED_APPS``.
|
* Add ``djangorestframework`` to your ``INSTALLED_APPS``.
|
||||||
|
|
||||||
For more information take a look at the :ref:`setup` section.
|
For more information on settings take a look at the :ref:`setup` section.
|
||||||
|
|
||||||
Getting Started
|
Getting Started
|
||||||
---------------
|
---------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user