Skip to content

Commit

Permalink
And some more editing
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn Jacobs committed Dec 30, 2015
1 parent 197c847 commit b1f0419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/usage/communicate_with_the_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ First get our basket and see the response:
}
.. note::
We need to re-send the cookies (wich include the `django session id`) to make sure we get the same basket again, this is the reason we use ``requests.Session()``. Otherwise we would get a new basket each request. So it's important to keep a track of sessions in your application. See also the ":ref:`header-session-label`" for an alternative option.
We need to re-send the cookies (wich include the `django session id`) to make sure we get the same basket again, this is the reason we use ``requests.Session()``. Otherwise we would get a new basket each request. So it's important to keep a track of sessions in your application. You can also use an alternative session middleware like the :ref:`header-session-label`.

.. code-block:: python
Expand All @@ -47,7 +47,7 @@ First get our basket and see the response:
print(json.loads(response.content)['id'])
1
To see what's inside the basket we can get the lines for this (which is in the response)
To see what's inside the basket we can get the lines for this (which is in the ``response``)

.. code-block:: python
Expand Down

0 comments on commit b1f0419

Please sign in to comment.