eq-survey-runner
WTForms
eq-survey-runner | WTForms | |
---|---|---|
1 | 5 | |
20 | 1,463 | |
- | 0.5% | |
0.0 | 8.3 | |
6 months ago | 6 days ago | |
Python | Python | |
MIT License | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
eq-survey-runner
-
The Gov.uk Design System is now live
Some departments open source all their work, if you're interested in browsing real apps built to GDS standards. I previously contracted at the Office of National Statistics, and it was the case there that everything was built in the open on github. For instance this django app runs all online surveys for the ONS, including the national census! https://github.com/ONSdigital/eq-survey-runner
WTForms
-
Best library for validating form/request/whatever data?
I know about WTForms. Are there similar packages that you would recommend?
-
Using HTML5 fields with WTForms
I then ended up on the WTForms github page, and found that actually there is support for all the new HTML5 fields, but that these fields aren't imported by default. https://github.com/wtforms/wtforms/blob/master/wtforms/fields/html5.py Therefore instead of using
-
Flask_wtf custom validator RequiredIf not working with fieldlist / formfields
class RequiredIf(object): #validator which makes a field required depending on value of another field # Source: https://stackoverflow.com/questions/8463209/how-to-make-a-field-conditionally-optional-in-wtforms # source: https://github.com/wtforms/wtforms/issues/623
-
Flask + Ajax Error: Dynamic SelectField shows "Not a valid choice"
https://github.com/wtforms/wtforms/blob/22e2cf97c65ed38911543d247ccb0fc2207e0da3/src/wtforms/fields/core.py#L564-L575
-
Pre-populate edit form from model with relationships
Yeah, you can populate it even on the frontend and it will work. There is a possible solution: https://github.com/wtforms/wtforms/issues/434#issuecomment-499400017
What are some alternatives?
flask-wtf - Simple integration of Flask and WTForms, including CSRF, file upload and Recaptcha integration.
django-crispy-forms - The best way to have DRY Django forms. The app provides a tag and filter that lets you quickly render forms in a div format while providing an enormous amount of capability to configure and control the rendered HTML.
govuk-design-system-backlog - GOV.UK Design System Community Backlog
marshmallow - A lightweight library for converting complex objects to and from simple Python datatypes.
uswds - The U.S. Web Design System helps the federal government build fast, accessible, mobile-friendly websites.
Deform - A Python HTML form library.
govuk-frontend - GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.
WTForms-JSON - Adds smart json support for WTForms. Useful for when using WTForms with RESTful APIs.
django-remote-forms - A platform independent django form serializer
Streaming multipart/form-data parser - Streaming (and fast!) parser for multipart/form-data written in Cython
django-bootstrap4 - Bootstrap 4 integration with Django.