[Fixed]-How do you get Django to make a RESTful call?

30👍

Use the requests library. Here is some discussion on it and I did a talk on “Consuming Web APIs with Python” at PyOhio that you might find interesting or helpful

3👍

“RESTful call” in practice just means making an HTTP request. There are a couple of built-in modules in Python that let you do this:

Then there are 3rd-party modules, like the one mentioned by @Issac (which, based on my very limited experience with urllib2 and httplib, looks much better than them for your purposes).

1👍

Slumber is a RESTful data connector that can be used to make proper RESTful data services from Django systems.

https://github.com/KayEss/django-slumber

👤yeaske

Leave a comment