Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-ajax-access-0.2.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

django_ajax_access-0.2.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file django-ajax-access-0.2.0.tar.gz.

File metadata

  • Download URL: django-ajax-access-0.2.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for django-ajax-access-0.2.0.tar.gz
Algorithm Hash digest
SHA256 17c85f557fa937886e7bab9b70bb5641c9b422576a77db91c449363a36013532
MD5 88690af260abe34109bf2f31edaf54f0
BLAKE2b-256 75df8c0bbdb6b0b9e55bbbaabf12b954f9eb255eae78dfd6da136808a3be9484

See more details on using hashes here.

File details

Details for the file django_ajax_access-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: django_ajax_access-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for django_ajax_access-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9be3997f4d9707b9d037709431c876e9574abd4050d4e0f3bf778f7884d4d2ad
MD5 d4dc4475a01823214916c9fb6bd65582
BLAKE2b-256 e06a62b3d476daa124a718420ad4fe15a3f63d23382a7bea989a49ef3431a82f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page