mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Minor notes on installation
This commit is contained in:
parent
ded60f5308
commit
ec5eaa56c1
|
@ -36,16 +36,23 @@ Installation & Setup
|
|||
--------------------
|
||||
|
||||
The django-rest-framework project is hosted as a `mercurial repository on bitbucket <https://bitbucket.org/tomchristie/django-rest-framework>`_.
|
||||
To get a local copy of the repository use mercurial::
|
||||
|
||||
To get a local copy of the repository either download the 0.1 release:
|
||||
|
||||
`django-rest-framework-0.1.tar.gz <https://bitbucket.org/tomchristie/django-rest-framework/downloads/django-rest-framework-0.1.tar.gz>`_
|
||||
|
||||
Or get the development source using mercurial::
|
||||
|
||||
hg clone https://bitbucket.org/tomchristie/django-rest-framework
|
||||
|
||||
To install Django REST framework to your ``site-packages`` directory run the ``setup.py`` script::
|
||||
|
||||
python setup.py install
|
||||
|
||||
To add django-rest-framework to a django project:
|
||||
|
||||
* Ensure that the ``djangorestframework`` directory is on your ``PYTHONPATH``.
|
||||
* Add ``djangorestframework`` to your ``INSTALLED_APPS``.
|
||||
|
||||
That's normally all you'll need to do to get Django REST framework set up on a standard installation using the testserver.
|
||||
* Ensure that the ``djangorestframework`` directory is on your ``PYTHONPATH``.
|
||||
* Add ``djangorestframework`` to your ``INSTALLED_APPS``.
|
||||
|
||||
For more information take a look at the :ref:`setup` section.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user