擅长:python、mysql、java
<p>Django文件详细说明答案2:
<a href="https://docs.djangoproject.com/en/dev/topics/auth/#id9" rel="nofollow">https://docs.djangoproject.com/en/dev/topics/auth/#id9</a></p>
<blockquote>
<p>The currently logged-in user's permissions are stored in the template variable {{ perms }}. This is an instance of django.contrib.auth.context_processors.PermWrapper, which is a template-friendly proxy of permissions.</p>
</blockquote>