in blog | timonweb.com |
---|---|
original entry | Checking Current User Permissions in Django Templates |
When developing Django applications, we often need to control which parts of the UI are accessible based on user permissions. Luckily, Django provides a straightforward way to check user permissions directly in templates using the perms
object.
perms
Object in Django TemplatesDjango automatically injects a perms
context …