Skip to main content

Django, but slower

Project description

Slow Django

Django, but slower

Ever thought that your project was too fast?

Install

pip install slow_django
# settings.py

import slow_django

SLOW_MIN = 2 # Minimum page load in seconds
SLOW_MAX = 10 # Maximum-ish page load in seconds

MIDDLEWARE = [
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'slow_django.middleware.slowdown'
]

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

slow-django-1.1.0.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

slow_django-1.1.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file slow-django-1.1.0.tar.gz.

File metadata

  • Download URL: slow-django-1.1.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.9.0b1+ Linux/5.4.0-7634-generic

File hashes

Hashes for slow-django-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0acb252bcf035d57b4dc78a5d74d015e2abf13664c5c8de63369b002b9fba1fb
MD5 9e7fb67adddb066416598dcf2c50a910
BLAKE2b-256 12d6bbbb971be4833f783f3da5e23ab2a8861f71eb8b8eea39fadc4baa53b69a

See more details on using hashes here.

File details

Details for the file slow_django-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: slow_django-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.9.0b1+ Linux/5.4.0-7634-generic

File hashes

Hashes for slow_django-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d45914abb8ea36bd157b408e3ba4f613f040b3e38f17587d568ab387410eb33a
MD5 f72573997463630a8cace1795d4c8ff9
BLAKE2b-256 84ddb39ca5d9d7d2385918ce6fe934ea61e1b5d2fef0c4921f01095429ed7a23

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