Metadata-Version: 2.1
Name: govuk-frontend-django
Version: 0.5.1
Summary: Django functionality to help when building a GOV.UK website.
Home-page: https://uktrade.github.io/govuk-frontend-django/
License: MIT
Author: DBT Live Service Team
Author-email: live.services@digital.trade.gov.uk
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: Django (>=4.1.9,<5.0.0)
Requires-Dist: govuk-frontend-jinja (==3.0.0)
Requires-Dist: jinja2 (>=3.1.2,<4.0.0)
Project-URL: Documentation, https://uktrade.github.io/govuk-frontend-django/
Project-URL: Repository, https://github.com/uktrade/govuk-frontend-django/
Description-Content-Type: text/markdown

# GOV.UK Frontend Django

[Documentation Site](https://uktrade.github.io/govuk-frontend-django/) | [GitHub](https://github.com/uktrade/govuk-frontend-django/) | [PyPI](https://pypi.org/project/govuk-frontend-django/)


The `govuk_frontend_django` package contains Django functionality to help when building a GOV.UK website.

The main part of this package is the [template tags](./template-tags/index.md) that it offers for use in your templates. These template tags will reduce the amount of markup that you need to maintain in your project.

This package also contains some helpful [templates](./templates.md) for your project, such as the `govuk_frontend_django/base.html` template which contains the basic structure of a GOV.UK website.

## Getting started

First install the package:
```bash
pip install govuk-frontend-django
```

In your settings file, add the app to your `INSTALLED_APPS`:
```python
INSTALLED_APPS = [
    ...
    "govuk_frontend_django",
]
```

Start using the template tags in your templates!
```django
{% load govuk_frontend_django %}

{% gds_component "back-link" href="/" %}
```

[More template tags](./template-tags/index.md)

## Compatibility table

Below is a list of the versions of this package and the versions of the GOV.UK Frontend that they are compatible with.

| Package Version | GOV.UK Frontend Version |
| --------------- | ----------------------- |
| [0.5.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.5.0) - [0.5.1](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.5.1) | [v5.1.0](https://github.com/alphagov/govuk-frontend/releases/tag/v5.1.0) |
| [0.4.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.4.0) - [0.4.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.4.0) | [v4.7.0](https://github.com/alphagov/govuk-frontend/releases/tag/v4.7.0) |
| [0.3.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.3.0) - [0.3.9](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.3.9) | [v4.6.0](https://github.com/alphagov/govuk-frontend/releases/tag/v4.6.0) |
| [0.2.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.2.0) - [0.2.3](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.2.3) | [v4.5.0](https://github.com/alphagov/govuk-frontend/releases/tag/v4.5.0) |

