Skip to content

Latest commit

 

History

History
60 lines (32 loc) · 1.05 KB

README.md

File metadata and controls

60 lines (32 loc) · 1.05 KB

Django User Ban Management

Compatibility

  • Django 1.8+
  • Python 3.x +

Installations

pip install DjangoBan

Configuration

  • 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
    

Demo

How to use?

-------- --------

Template Customization

  • Ban template : ban.html

  • Templates included in your application You can create and customize the file named "ban.html".