semvec/pypi-packages huggingface dataset:
django-ajax-access 0.2.0
A set of views and urls for ajax-based logout and logout for Django
License: BSD 2-Clause License
Keywords: django,ajax,login,logout

# 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

```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, include

urlpatterns = [
  ...
  url("^access/", include("ajax_access.urls")),
  ...
]
```