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.15.0 - 0.15.1 v5.9.0
0.14.0 - 0.14.0 v5.8.0
0.13.0 - 0.13.1 v5.7.0 - v5.7.1
0.12.0 - 0.12.1 v5.6.0
0.11.0 - 0.11.1 v5.5.0
0.10.0 - 0.10.1 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

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.15.2.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

govuk_frontend_django-0.15.2-py3-none-any.whl (43.5 kB view details)

Uploaded Python 3

File details

Details for the file govuk_frontend_django-0.15.2.tar.gz.

File metadata

  • Download URL: govuk_frontend_django-0.15.2.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/24.5.0

File hashes

Hashes for govuk_frontend_django-0.15.2.tar.gz
Algorithm Hash digest
SHA256 0a9347508bd2336764f380752634657f5816712bbff5a6385b8c155a2a2bca4e
MD5 9f6b0331b966f14cef8898fd6770e71c
BLAKE2b-256 62a0e8512342e0d7ff90a4edda9dd0dadd205b8b64e22a1f337f0a44d1d477ea

See more details on using hashes here.

File details

Details for the file govuk_frontend_django-0.15.2-py3-none-any.whl.

File metadata

File hashes

Hashes for govuk_frontend_django-0.15.2-py3-none-any.whl
Algorithm Hash digest
SHA256 77f13f1ad72504dda28b1f9cea5bb05722ae9f125bb9d6390336db83059ed4d3
MD5 c5546a255957884edd88886e62d35bdd
BLAKE2b-256 4196f9d81086c543e4af107a497d2555fe8575d784a107a6c626329d6ac87709

See more details on using hashes here.

Supported by

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