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)



Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-http2-push, version 0.0b2
Filename, size File type Python version Upload date Hashes
Filename, size django_http2_push-0.0b2-py3-none-any.whl (4.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size django_http2_push-0.0b2.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page