Skip to main content

No project description provided

Project description

pmd-django

dev

Provides the Django management command python manage.py dev

auth middleware

To use the auth middleware:

  1. List pmd_django in the INSTALLED_APPS in settings.py
INSTALLED_APPS = [
    "pmd_django",
    ...
]
  1. List pmd_django.auth.api_key_middleware in the MIDDLEWARE just underneath django.contrib.auth.middleware.AuthenticationMiddleware
MIDDLEWARE = [
    "django.middleware.security.SecurityMiddleware",
    "whitenoise.middleware.WhiteNoiseMiddleware",
    "django.contrib.sessions.middleware.SessionMiddleware",
    "corsheaders.middleware.CorsMiddleware",
    "django.middleware.common.CommonMiddleware",
    "django.contrib.auth.middleware.AuthenticationMiddleware",
    "pmd_django.auth.api_key_middleware",
    "django.contrib.messages.middleware.MessageMiddleware",
    "django.middleware.clickjacking.XFrameOptionsMiddleware",
]
  1. Optionally add USER_API_KEY = env.str("USER_API_KEY") to settings.py
  2. Optionally add USER_AUTH_FILTERS to settings.py. This should be a list of functions that will get passed a request object. The function should return true if the middleware should authorize the request.

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

pmd_django-1.1.5.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pmd_django-1.1.5-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file pmd_django-1.1.5.tar.gz.

File metadata

  • Download URL: pmd_django-1.1.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pmd_django-1.1.5.tar.gz
Algorithm Hash digest
SHA256 c63a32bc7d31fc6442f065dcead675bb9925c123c390884b013a71b3b2f4b7f0
MD5 ef03ec60bd1c75d6a0b91db8fa70dc4b
BLAKE2b-256 d7748aaf6d7cf207b255d09eca59fcc68b05d11faeb5d2955d5b059b44e07895

See more details on using hashes here.

Provenance

The following attestation bundles were made for pmd_django-1.1.5.tar.gz:

Publisher: publish.yml on TechServ-Consulting-Training-Ltd/pmd-django

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pmd_django-1.1.5-py3-none-any.whl.

File metadata

  • Download URL: pmd_django-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pmd_django-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 174be87f76381accf4797ab6a3d8d3eaaf62228e01a71b4ec456807681a2ea9d
MD5 16e1b309010f72eee3bf9c32968ea1c7
BLAKE2b-256 c94ab2343fd49f0bef15d12b80e330159c491484c8fb2227ff418bf6ec062623

See more details on using hashes here.

Provenance

The following attestation bundles were made for pmd_django-1.1.5-py3-none-any.whl:

Publisher: publish.yml on TechServ-Consulting-Training-Ltd/pmd-django

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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