Install & Compatibility
Where this runs
tested against v1.0.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 66.3MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.4s · import 0.000s · 67MB
65MB installed
● package 65MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
MethodOverrideMiddleware
✓ from method_override.middleware import MethodOverrideMiddleware
✗ from django_method_override.middleware import MethodOverrideMiddleware
Add middleware to MIDDLEWARE list in settings.py. Then submit a POST with _method field or X-HTTP-Method-Override header to override the HTTP method.
# settings.py
MIDDLEWARE = [
...
'django_method_override.middleware.MethodOverrideMiddleware',
...
]
# In a form, add a hidden field:
# <input type="hidden" name="_method" value="DELETE">
# Or send header: X-HTTP-Method-Override: DELETE
Upgrade
Version history
1.0.4latest on PyPI · released Jan 6, 2020
Audit
Dependencies
DjangorequiredCore dependency; middleware integrates with Django request/response.