Skip to main content

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].

Usage

  • 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

Development

Please report bugs and open pull requests on GitHub.

Use python setup.py 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 setup.py makemessages compilemessages.

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

To do

  • Is HTML creation mechanic good?

Download files

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

Source Distribution

django-govuk-forms-0.4.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

django_govuk_forms-0.4-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file django-govuk-forms-0.4.tar.gz.

File metadata

File hashes

Hashes for django-govuk-forms-0.4.tar.gz
Algorithm Hash digest
SHA256 6e4ab20263b97b45b54a1e94a5ec3441a8c46ed6366b1b425d589386f4106f84
MD5 027fbd79f4567744db615d1a2e95cde5
BLAKE2b-256 829ff65f8bce64b603a6153957942a3a4eb112c6f20cf0cbbe61a27745031959

See more details on using hashes here.

File details

Details for the file django_govuk_forms-0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for django_govuk_forms-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f13ca983a77a00d3ee49a37cd7f9dcf06d3aefdbe7f49b78c08a6ad985cf4c31
MD5 58f813f94380536ef2152433d58d2469
BLAKE2b-256 fd37dc11f6dfcee43e2305e934de85f5836fe8f27b45dec8c703847b124d6c4f

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