| 1 |
--- |
| 2 |
description: django-guardian documentation. Per-object permissions for Django. |
| 3 |
--- |
| 4 |
|
| 5 |
# django-guardian - per object permissions for Django |
| 6 |
|
| 7 |
`django-guardian` is an implementation of object permissions for [Django](http://www.djangoproject.com/) providing an extra *authentication backend*. |
| 8 |
|
| 9 |
<div style="display: flex;"> |
| 10 |
<div style="flex: 1;"> |
| 11 |
<h2>Features</h2> |
| 12 |
<ul> |
| 13 |
<li>Object permissions for <a href="https://www.djangoproject.com/">Django</a></li> |
| 14 |
<li>AnonymousUser support</li> |
| 15 |
<li>High level API</li> |
| 16 |
<li>Heavily tested</li> |
| 17 |
<li>Django's admin integration</li> |
| 18 |
<li>Decorators</li> |
| 19 |
</ul> |
| 20 |
</div> |
| 21 |
<div style="flex: 1; display: flex; justify-content: center; align-items: center;"> |
| 22 |
<img alt="A black knights shield" style="max-width: 60%; min-width: 150px; margin-top: 10%;" src="./assets/logo.svg"/> |
| 23 |
</div> |
| 24 |
</div> |
| 25 |
|
| 26 |
`django-guardian` supports Python 3.9+ and Django 4.2+. |
| 27 |
|
| 28 |
## Source and issue tracker |
| 29 |
|
| 30 |
The source code and issue tracker are available on [GitHub](http://github.com/django-guardian/django-guardian). |
| 31 |
If you find a bug, have a suggestion, or would like to request a feature, |
| 32 |
you may file a ticket there. |
| 33 |
|
| 34 |
## Alternate projects |
| 35 |
|
| 36 |
[Django](http://www.djangoproject.com/) has the foundation for object-level permissions |
| 37 |
<sup> |
| 38 |
[[1]](#references) |
| 39 |
</sup>, |
| 40 |
`django-guardian` makes use of these facilities, and it is based on them. |
| 41 |
While it is possible to role-your-own implementation, |
| 42 |
we recommend using `django-guardian`, but we may be biased. |
| 43 |
|
| 44 |
There are some other third-party projects, including: |
| 45 |
|
| 46 |
- [django-authority](https://github.com/jazzband/django-authority) |
| 47 |
- [django-permissions](https://github.com/lambdalisue/django-permission) (Archived) |
| 48 |
- [django-rules](https://github.com/dfunckt/django-rules) |
| 49 |
|
| 50 |
### References |
| 51 |
|
| 52 |
<sup> |
| 53 |
[1] |
| 54 |
</sup> |
| 55 |
See [https://docs.djangoproject.com/en/stable/topics/auth/customizing/#handling-object-permissions](https://docs.djangoproject.com/en/stable/topics/auth/customizing/#handling-object-permissions) for more detail. |