Django User Ban Management
- Django 1.8+
- Python 3.x +
pip install DjangoBan
-
Example settings.py : Load the application.
#settings.py INSTALLED_APPS = [ ... 'ban', ]
-
Example MIDDLEWARE_CLASESS
ban.middleware.BanManagement MIDDLEWARE_CLASESS add.
MIDDLEWARE = [
...
'ban.middleware.BanManagement',
]
-
Database Operations
python manage.py makemigrations python manage.py migrate
-
Ban template : ban.html
-
Templates included in your application You can create and customize the file named "ban.html".