Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexseitsinger/django-ajax-access
A set of views and urls for ajax-based login and logout for Django
https://github.com/alexseitsinger/django-ajax-access
ajax django
Last synced: about 1 month ago
JSON representation
A set of views and urls for ajax-based login and logout for Django
- Host: GitHub
- URL: https://github.com/alexseitsinger/django-ajax-access
- Owner: alexseitsinger
- License: bsd-2-clause
- Created: 2019-01-22T23:12:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-29T01:24:40.000Z (over 5 years ago)
- Last Synced: 2024-08-10T23:24:49.869Z (5 months ago)
- Topics: ajax, django
- Language: Python
- Homepage: https://www.alexseitsinger.com/packages/python/django-ajax-access
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Django Ajax Access
## Description
A set of views and urls for ajax-based logout and logout for Django.
## Installation
```
pip install django-ajax-access
```## Usage
settings.py
```python
AJAX_ACCESS = {
"LOGIN_RATELIMIT": {
"KEY": "ip",
"RATE": "10/h",
"BLOCK": True,
},
"LOGOUT_RATELIMIT": {
"KEY": "ip",
"RATE": "10/h",
"BLOCK": True,
},
}
```urls.py
```python
from django.conf.urls import url, includeurlpatterns = [
...
url("^access/", include("ajax_access.urls")),
...
]
```