diff options
| author | Tom Christie | 2011-06-02 13:34:23 +0100 |
|---|---|---|
| committer | Tom Christie | 2011-06-02 13:34:23 +0100 |
| commit | 5591a71a13d35b8d3eba747a880c6e213eaae111 (patch) | |
| tree | 7196d42153f3e263d7f504dbacdb2d6ca967e89b /docs/howto | |
| parent | b50492853f537a2473bb0a9eea86c8b0ed6b8824 (diff) | |
| download | django-rest-framework-5591a71a13d35b8d3eba747a880c6e213eaae111.tar.bz2 | |
updating docs for 0.2
Diffstat (limited to 'docs/howto')
| -rw-r--r-- | docs/howto/setup.rst | 7 | ||||
| -rw-r--r-- | docs/howto/usingcurl.rst | 6 |
2 files changed, 12 insertions, 1 deletions
diff --git a/docs/howto/setup.rst b/docs/howto/setup.rst index e59ea90e..b4fbc037 100644 --- a/docs/howto/setup.rst +++ b/docs/howto/setup.rst @@ -3,6 +3,13 @@ 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 ---------------- diff --git a/docs/howto/usingcurl.rst b/docs/howto/usingcurl.rst index e7edfef9..2ad2c764 100644 --- a/docs/howto/usingcurl.rst +++ b/docs/howto/usingcurl.rst @@ -23,4 +23,8 @@ There are a few things that can be helpful to remember when using CURL with djan #. Or any other content type:: - curl -X PUT -H 'Content-Type: application/json' --data-binary '{"foo":"bar"}' http://example.com/my-api/some-resource/
\ No newline at end of file + 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/
\ No newline at end of file |
