Skip to main content

Add monkey-patches to correct and enhance your favorite framework

Project description

django-monkey-patches

pypi-version

A collection of monkey patches to improve Django framework

Use

Each monkey-patch beautiful_patch should be available with a function apply_beautiful_patch(). Hence, all you have to do is:

from django_monkey_patches.django__beautiful_class__beautiful_patch import apply_beautiful_patch

apply_beautiful_patch()

For example, you can do it in your Django settings.py file or in a file imported in settings.py.

Choosing a patch

Look at the source code on GitHub. The rational behind each patch is given in the source code file. If you cannot bother reading the source code of a patch of ten or twenty lines, you probably should not apply it anyway ;).

F.A.Q.

Why does the version not follow Django versions?

Because I plan to add monkey-patches for other packages around Django itself. For example, Django Rest Framework (DRF) is in "maintenance mode only". It does not accept new features and is only updated to keep compatibility with new versions of Django. Moreover, many patches wil be plainly compatible with most versions of Django, and I don't see the need of multiplying versions. So instead, I use semantic versioning relative to the proposed patches.

Why is Django not a dependency?

See previous question.

Why is there no tests folder?

See previous question.

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_monkey_patches-1.4.0.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

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

django_monkey_patches-1.4.0-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

Details for the file django_monkey_patches-1.4.0.tar.gz.

File metadata

  • Download URL: django_monkey_patches-1.4.0.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for django_monkey_patches-1.4.0.tar.gz
Algorithm Hash digest
SHA256 2cdb398c3a66d67312fdb0c8de10399ffd461045d63bc6571dea5460bf193c53
MD5 07d7ab5711577513117833d4cccac8a2
BLAKE2b-256 607ab35261fbd358946f18ddf195966cbf73b1c168f7e8a9fc733e13935aa6b3

See more details on using hashes here.

File details

Details for the file django_monkey_patches-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_monkey_patches-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2cd395a42c0e2cff17891bd0daa10c80faa4938a65729f1bbb2d37bb768677bc
MD5 47f4372f8051f801002004c001d79570
BLAKE2b-256 0ef77ebcd2096e8b8b870f3cb7ab52251039195a5ff0e2ccc2a4357a8538d576

See more details on using hashes here.

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