Skip to main content

Middleware and templatetag for Django to utilize HTTP/2 push for assets included in a Django template. The middleware injects a Link header in each response if there are files to be pushed to the client. All files in the template which are suitable for HTTP/2 push should be included with the staticpush templatetag instead of the vanilla static templatetag. The former simply augments the later and registers the resulting static URL with the middleware.

This package currently supports Apache2 webservers with mod_http2 enabled, as the actual HTTP/2 push is offloaded to the webserver.

Installation

pip install django-static-push

Documentation

https://django-static-push.readthedocs.io/en/latest/

Development

To run the all tests run:

tox

Note, to combine the coverage data from all the tox environments run:

Windows

set PYTEST_ADDOPTS=--cov-append
tox

Other

PYTEST_ADDOPTS=--cov-append tox

Changelog

0.1.0 (2016-01-29)

  • First release on PyPI.

Metadata

Release files for django-static-push 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-static-push 0.1.0
File Size Uploaded Provenance
django-static-push-0.1.0.tar.gz 10.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-static-push 0.1.0
File Interpreter ABI Platform
django_static_push-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 16.6 kB

Release files / django-static-push-0.1.0.tar.gz

Download URL django-static-push-0.1.0.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d78b65d773c9a422a7009d07c427d77754e3fbf46275256de4eccd142d81c385
BLAKE2b-256 checksum
How to use checksums
3d1a220e02e264159b8900a10b1c66eaf6bb9ccbc240085b34189983868e90b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_static_push-0.1.0-py2.py3-none-any.whl

Download URL django_static_push-0.1.0-py2.py3-none-any.whl
Size 6.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f0bacc152e82a42a02d7d3da7bb33e8f1c53dfc1a32ffac6748f287782a3dfa0
BLAKE2b-256 checksum
How to use checksums
1d3a2d8d48105997225697fb371024c53dfa579246b7b56ca49030b44a78f8cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-static-push 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page