Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 3.43 KB

README.md

File metadata and controls

50 lines (36 loc) · 3.43 KB

GOV.UK Frontend Django

Documentation Site | GitHub | PyPI

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 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 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:

pip install govuk-frontend-django

In your settings file, add the app to your INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    "govuk_frontend_django",
]

Start using the template tags in your templates!

{% load govuk_frontend_django %}

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

More template tags

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.10.0 - 0.10.0 v5.4.1
0.9.0 - 0.9.1 v5.4.0
0.8.0 - 0.8.0 v5.3.1
0.7.0 - 0.7.0 v5.3.0
0.6.0 - 0.6.0 v5.2.0
0.5.0 - 0.5.1 v5.1.0
0.4.0 - 0.4.0 v4.7.0
0.3.0 - 0.3.9 v4.6.0
0.2.0 - 0.2.3 v4.5.0