This week I made some more progress learning Django using the REST APIs with Django book. The section of the book I'm currently in talks about using the Django REST plugin for handling permissions. I like some of the defaults that are in there, especially the "SAFE_METHODS
" macro (which are the methods that don't change the data. A use of that would be:
if request.method in permissions.SAFE_METHODS:
return True
That might not look like much, but it's one of those little "convenience" methods that makes me think that someone gave this some thought.
On a personal side I've been able to do this most days, and am happy to see the progress.