mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 16:24:18 +03:00
Minor notes on installation
This commit is contained in:
parent
ded60f5308
commit
ec5eaa56c1
|
@ -36,17 +36,24 @@ Installation & Setup
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
The django-rest-framework project is hosted as a `mercurial repository on bitbucket <https://bitbucket.org/tomchristie/django-rest-framework>`_.
|
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
|
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:
|
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``.
|
||||||
|
|
||||||
That's normally all you'll need to do to get Django REST framework set up on a standard installation using the testserver.
|
|
||||||
|
|
||||||
For more information take a look at the :ref:`setup` section.
|
For more information take a look at the :ref:`setup` section.
|
||||||
|
|
||||||
Getting Started
|
Getting Started
|
||||||
|
|
Loading…
Reference in New Issue
Block a user