Skip to main content

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")),
  ...
]

Metadata

Release files for django-ajax-access 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-ajax-access 0.2.0
File Size Uploaded
django-ajax-access-0.2.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-ajax-access 0.2.0
File Interpreter ABI Platform
django_ajax_access-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / django-ajax-access-0.2.0.tar.gz

Download URL django-ajax-access-0.2.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
17c85f557fa937886e7bab9b70bb5641c9b422576a77db91c449363a36013532
BLAKE2b-256 checksum
How to use checksums
75df8c0bbdb6b0b9e55bbbaabf12b954f9eb255eae78dfd6da136808a3be9484
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / django_ajax_access-0.2.0-py3-none-any.whl

Download URL django_ajax_access-0.2.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9be3997f4d9707b9d037709431c876e9574abd4050d4e0f3bf778f7884d4d2ad
BLAKE2b-256 checksum
How to use checksums
e06a62b3d476daa124a718420ad4fe15a3f63d23382a7bea989a49ef3431a82f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page