Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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

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