A set of views and urls for ajax-based logout and logout for Django
Project description
Django Ajax Access
Description
A set of views and urls for ajax-based logout and logout for Django.
Installation
pip install django_ajax_access
or
pipenv install django_ajax_access
Usage
settings.py
AJAX_ACCESS = {
"LOGIN_RATELIMIT": {
"KEY": "ip",
"RATE": "10/h",
"BLOCK": True,
},
"LOGOUT_RATELIMIT": {
"KEY": "ip",
"RATE": "10/h",
"BLOCK": True,
},
}
urls.py
from django.conf.urls import url, include
urlpatterns = [
...
url("^access/", include("ajax_access.urls")),
...
]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_ajax_access-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9be3997f4d9707b9d037709431c876e9574abd4050d4e0f3bf778f7884d4d2ad |
|
MD5 | d4dc4475a01823214916c9fb6bd65582 |
|
BLAKE2b-256 | e06a62b3d476daa124a718420ad4fe15a3f63d23382a7bea989a49ef3431a82f |