Skip to main content

A simple way to add Header LINK

Project description

# django_http2_push

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)

A simple way to add Header LINK

## Install

```bash
pip install django_http2_push
```

Update your `settings.py`

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

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

## Usage

In the templates now use `static_push` instead of `static`.

![template_html](docs/images/template_html.png)

![header](docs/images/header_done.png)



Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page