diff options
| author | Marko Tibold | 2011-12-30 18:52:15 +0100 | 
|---|---|---|
| committer | Marko Tibold | 2011-12-30 18:52:15 +0100 | 
| commit | e44f182fcf51d0f169461c4a36647adb7324e8a9 (patch) | |
| tree | 634737175f198aa3878305ecf80aa328b74ef068 /docs | |
| parent | e82ab8ea31de5a89470dd039e426af0e16df54f8 (diff) | |
| download | django-rest-framework-e44f182fcf51d0f169461c4a36647adb7324e8a9.tar.bz2 | |
typos
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/howto/usingurllib2.rst | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/howto/usingurllib2.rst b/docs/howto/usingurllib2.rst index 8b655d45..a31bcc9b 100644 --- a/docs/howto/usingurllib2.rst +++ b/docs/howto/usingurllib2.rst @@ -4,15 +4,15 @@ Using urllib2  Python's standard library comes with some nice modules  you can use to test your api or even write a full client. -Here's an example which does a 'GET' on the `model-resource` examle +Here's an example which does a 'GET' on the `model-resource` example  in the sandbox.:: -    import urllib2 +    >>> import urllib2      >>> r = urllib2.urlopen('htpp://rest.ep.io/model-resource-example')      # You can check if the response was ok:      >>> r.getcode()      200 -    # Or examin the resonse itself: +    # Or examin the response itself:      >>> print r.read()      [{"url": "http://rest.ep.io/model-resource-example/1/", "baz": "sdf", "foo": true, "bar": 123}]  | 
