Minimal view code for setting up https://github.com/idan/oauthlib as an OAuth provider. Lines 7 - 70 are for oauthlib, the rest are the actual django views.