Add monkey-patches to correct and enhance your favorite framework
Project description
django-monkey-patches
| 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_monkey_patches-3.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dcdf76c2bcd71b1d9b22fd77a5727d968d708aeff4d152c650c2bd311f8f060 |
|
MD5 | e95d30c58163421bca2a68a5fd3bec5b |
|
BLAKE2b-256 | 27b234f72d3fcf7095bbcd3542fdcd13fd0e4a1f515b6f6f08bcf76544ab2963 |
Hashes for django_monkey_patches-3.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea52b8f7ca9839cad65e99f92895fd3f7d89a7789ad390da52103f872c45c923 |
|
MD5 | 97462f1db00c6320804bb93458f967d4 |
|
BLAKE2b-256 | 606393e10a555c19e480c02bcf924700d6a3299d92d03532e8722dc3eeda9075 |