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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s