Django GOV.UK Forms
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
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?
Copyright
Copyright (C) 2018 HM Government (Ministry of Justice Digital Services). See LICENSE.txt for further details.
Metadata
Release files for django-govuk-forms 0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-govuk-forms-0.7.tar.gz | 12.7 kB | Without provenance | Details for django-govuk-forms-0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_govuk_forms-0.7-py3-none-any.whl | Python 3 | none | any | Details for django_govuk_forms-0.7-py3-none-any.whl |
Total release size: 31.4 kB
Release files / django-govuk-forms-0.7.tar.gz
| Download URL | django-govuk-forms-0.7.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b288619687a14c688ad82ef712c258cf3f91f74f841f25ab4b12dffe2c37fa26
|
|
BLAKE2b-256 checksum How to use checksums |
67e31415493a68bf7eeb302d0b19428cb115f91498ac4f1bbe7cf1c98741323a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Release files / django_govuk_forms-0.7-py3-none-any.whl
| Download URL | django_govuk_forms-0.7-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c54635e0955c8fdc3ab8942fec10f51b6fa6635b076cd587bf07d45d7ccd24e9
|
|
BLAKE2b-256 checksum How to use checksums |
1634cd75a014d072f67e1c806086c45eb523f62d0738dfd5b6e784018b5076f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Security for django-govuk-forms 0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.