| 1 |
--- |
| 2 |
title: Install |
| 3 |
description: Getting started with django-guardian. |
| 4 |
--- |
| 5 |
|
| 6 |
# Installation |
| 7 |
|
| 8 |
This application requires [Django](http://www.djangoproject.com/) 3.2 or higher. |
| 9 |
It is the only prerequisite before `django-guardian` may be used. |
| 10 |
|
| 11 |
```shell |
| 12 |
pip install django-guardian |
| 13 |
``` |
| 14 |
|
| 15 |
`django-guardian` needs to be [configured](./configuration.md) in your django settings. |
| 16 |
|
| 17 |
Additional dependencies are required to run tests or the example application, see [Testing](./develop/testing.md) |
| 18 |
and [Example project](./userguide/examples.md). |
| 19 |
|
| 20 |
## Starting a new project |
| 21 |
|
| 22 |
By default, Guardian uses generic foreign keys to retain relation with any Django model which |
| 23 |
has implications on performance. |
| 24 |
If you're starting a new project, you may want to read the following sections of the documentation: |
| 25 |
|
| 26 |
1. [performance tuning docs](./userguide/performance.md) |
| 27 |
2. [Configuration docs](./configuration.md) |