I found it a little difficult finding solid information about implementing user permission checks for Django.
After reading numerous sites and tutorials, I've combined a few methods to make it a bit easier.
Rather than inserting the permissions into the database manually, use the Meta attribute in your models (from Satchmo Project).
Example model with permission.
# Your field declarations
title = model.TextField()
description = model.TextField()
permissions = (
("is_caption_moderator", "Caption Moderator"),
After setting up the permissions, use ./manage.py syncdb to install these permissions into the database.
Now you can simply check for sufficient permissions as long as you have the user object.
if request.user.has_perm('is_caption_moderator') == False:
# Do something here like return HttpResponseNotAllowed()
# The rest of your view here
Lastly, remember to grant specific permissions to users when moving this code live because the admin user automatically has access to everything.