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.

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

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

Development

https://travis-ci.org/ministryofjustice/django-govuk-forms.svg?branch=master

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?

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

django-govuk-forms-0.7.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

django_govuk_forms-0.7-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-govuk-forms-0.7.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for django-govuk-forms-0.7.tar.gz
Algorithm Hash digest
SHA256 b288619687a14c688ad82ef712c258cf3f91f74f841f25ab4b12dffe2c37fa26
MD5 0720381da94f19547da8653dda1cdef6
BLAKE2b-256 67e31415493a68bf7eeb302d0b19428cb115f91498ac4f1bbe7cf1c98741323a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_govuk_forms-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c54635e0955c8fdc3ab8942fec10f51b6fa6635b076cd587bf07d45d7ccd24e9
MD5 3f1ed2cb3681d6d2b0a715b5f881f99f
BLAKE2b-256 1634cd75a014d072f67e1c806086c45eb523f62d0738dfd5b6e784018b5076f7

See more details on using hashes here.

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