mirror of
https://github.com/jazzband/django-defender.git
synced 2026-03-16 22:10:32 +00:00
readme formatting fixes
This commit is contained in:
parent
15fd65f06b
commit
1974643c14
1 changed files with 7 additions and 3 deletions
10
README.md
10
README.md
|
|
@ -151,6 +151,7 @@ TODO: add to pypi once stable.
|
|||
First of all, you must add this project to your list of ``INSTALLED_APPS`` in
|
||||
``settings.py``::
|
||||
|
||||
```
|
||||
INSTALLED_APPS = (
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
|
|
@ -161,18 +162,21 @@ INSTALLED_APPS = (
|
|||
'defender',
|
||||
...
|
||||
)
|
||||
```
|
||||
|
||||
Next, install the ``FailedLoginMiddleware`` middleware::
|
||||
Next, install the ``FailedLoginMiddleware`` middleware::
|
||||
|
||||
```
|
||||
MIDDLEWARE_CLASSES = (
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
'defender.middleware.FailedLoginMiddleware'
|
||||
)
|
||||
```
|
||||
|
||||
Run ``python manage.py syncdb``. This creates the appropriate tables in your database
|
||||
that are necessary for operation.
|
||||
Run ``python manage.py syncdb``. This creates the appropriate tables in your database
|
||||
that are necessary for operation.
|
||||
|
||||
|
||||
Customizing Defender
|
||||
|
|
|
|||
Loading…
Reference in a new issue