diff --git a/docs/api-guide/testing.md b/docs/api-guide/testing.md index 47d6887c7..5f27c23e4 100644 --- a/docs/api-guide/testing.md +++ b/docs/api-guide/testing.md @@ -238,12 +238,12 @@ For example... client = RequestsClient() # Obtain a CSRF token. - response = client.get('/homepage/') + response = client.get('http://testserver/homepage/') assert response.status_code == 200 csrftoken = response.cookies['csrftoken'] # Interact with the API. - response = client.post('/organisations/', json={ + response = client.post('http://testserver/organisations/', json={ 'name': 'MegaCorp', 'status': 'active' }, headers={'X-CSRFToken': csrftoken})