Skip to main content

Django app that creates forms based on Government Digital Services style guide

Project description

This library has not yet been updated to use the new Design system

It should be easy to make a Django-based service that follows Government Digital Services’ style guide and reference materials.

This Django app allows forms to be output using the HTML that can be styled using GOV.UK elements. The styles themselves are provided by another package [1].

NB: Until version 1.0, there is likely going to be a lot of variation in the api, so it’s a good idea to pin a specific minor version.


  • Install django-govuk-forms or django-govuk-template[forms]
  • Add govuk_forms to INSTALLED_APPS
  • Inherit forms from govuk_forms.forms.GOVUKForm and use widgets from govuk_forms.widgets

See the demo folder in this repository on GitHub, it is not included in distributions.


Please report bugs and open pull requests on GitHub.

Use python test to run all tests.

This repository does not need to be updated for every release of GDS’s packages, only breaking changes for overridden components may need fixes.

If any localisable strings change, run python makemessages compilemessages.

Distribute a new version to PyPi by updating the VERSION tuple in govuk_forms and run python compilemessages sdist bdist_wheel upload.

To do

  • Is HTML creation mechanic good?

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-govuk-forms, version 0.7
Filename, size File type Python version Upload date Hashes
Filename, size django_govuk_forms-0.7-py3-none-any.whl (18.7 kB) File type Wheel Python version 3.7 Upload date Hashes View
Filename, size django-govuk-forms-0.7.tar.gz (12.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page