Skip to main content

Django functionality to help when building a GOV.UK website.

Project description

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.2.0 - 0.2.3 v4.5.0
0.3.0 - 0.3.9 v4.6.0
0.4.0 - 0.4.0 v4.7.0

Project details


Download files

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

Source Distribution

govuk_frontend_django-0.4.0.tar.gz (17.8 kB view hashes)

Uploaded Source

Built Distribution

govuk_frontend_django-0.4.0-py3-none-any.whl (40.6 kB view hashes)

Uploaded Python 3

Supported by

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