2011-01-30 21:30:39 +03:00
|
|
|
# To install django-rest-framework in a virtualenv environment...
|
2010-12-30 04:02:11 +03:00
|
|
|
|
|
|
|
hg clone https://tomchristie@bitbucket.org/tomchristie/django-rest-framework
|
|
|
|
cd django-rest-framework/
|
|
|
|
virtualenv --no-site-packages --distribute --python=python2.6 env
|
|
|
|
source ./env/bin/activate
|
2011-01-30 21:30:39 +03:00
|
|
|
pip install -r requirements.txt
|
2010-12-30 04:02:11 +03:00
|
|
|
|
2011-01-17 20:34:58 +03:00
|
|
|
# To build the documentation...
|
|
|
|
|
2011-01-30 21:30:39 +03:00
|
|
|
pip install -r docs/requirements.txt
|
2011-02-01 22:55:57 +03:00
|
|
|
sphinx-build -c docs -b html -d docs/build docs html
|
2011-01-30 21:30:39 +03:00
|
|
|
|
|
|
|
# To run the examples...
|
|
|
|
|
|
|
|
pip install -r examples/requirements.txt
|
|
|
|
cd examples
|
|
|
|
export PYTHONPATH=..
|
|
|
|
python manage.py syncdb
|
|
|
|
python manage.py runserver
|
2011-01-17 20:34:58 +03:00
|
|
|
|