Tastypie: the missing manual

I am using tastypie to try and get a REST interface working on a Django site. The API needs to be password protected. The problem is the docs assume you already know how authorize thru REST.

It’s actually trivial once you realize that the phrase “basic authentication” is actually a single entity; “basic-authentication” . Doing basic-authentication is pretty easy using the the python package “requests“. Just jump to the section in their docs. As easy as falling off a log.

Advertisements