Skip to content

ricardochaves/django_http2_push

Repository files navigation

django_http2_push

Build Status Coverage Status Codacy Badge Maintainability Updates Python 3 Code style: black GitHub PyPI version Downloads Downloads Downloads Say Thanks!

A simple way to add Header LINK

Install

pip install django_http2_push

Update your settings.py

INSTALLED_APPS = [
    ...
    "django_http2_push",
    ...
]

MIDDLEWARE = [
    ...
    "django_http2_push.middleware.PushHttp2Middleware",
    ...
]

Usage

In the templates now use static_push instead of staticfiles.

template_html

header