Metadata-Version: 2.1
Name: django-acsecure
Version: 0.1.3
Summary: Access Secure Django Middleware
Home-page: https://github.com/TrentaIcedCoffee/access-secure
Author: Xin Jin
Author-email: opposcript@gmail.com
License: MIT
Keywords: django,log,anti-spam
Platform: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.5
Description-Content-Type: text/markdown
Requires-Dist: asgiref (==3.2.3)
Requires-Dist: certifi (==2019.11.28)
Requires-Dist: chardet (==3.0.4)
Requires-Dist: Django (==3.0.3)
Requires-Dist: idna (==2.8)
Requires-Dist: pytz (==2019.3)
Requires-Dist: requests (==2.22.0)
Requires-Dist: sqlparse (==0.3.0)
Requires-Dist: urllib3 (==1.25.8)

[![PyPI version](https://badge.fury.io/py/django-acsecure.svg)](https://badge.fury.io/py/django-acsecure)

# django-acsecure

Access Secure middleware for Django, for logging, anti-spamming and black/white list...

## Install

 - Go to [https://logsecure.io](https://www.logsecure.io/), create an account and project. Remember project ID and keep project token in secret. (See [images below for details](#images))
 -     pip install django-acsecure
 - In `settings.py`, put your project ID and Token, and put middleware in `MIDDLEWARE`    

	```python
	ACCESS_SECURE_APPID = 'my-app-id'
    ACCESS_SECURE_TOKEN = 'my-app-token'

    MIDDLEWARE = [
	    'django.middleware.security.SecurityMiddleware',
	    'django.contrib.sessions.middleware.SessionMiddleware',
	    ...
	    'acsecure.middleware.AccessSecureMiddleware',
	]
	```

## Images
### register    
<img alt="register.JPG" src="https://raw.githubusercontent.com/TrentaIcedCoffee/access-secure/master/images/register.JPG" width="600" />    

### create project    
<img alt="create-project.JPG" src="https://raw.githubusercontent.com/TrentaIcedCoffee/access-secure/master/images/create-project.JPG" width="600" />    

### project ID and Token    
<img alt="console.JPG" src="https://raw.githubusercontent.com/TrentaIcedCoffee/access-secure/master/images/console.JPG" width="600" />    


