Skip to content

bubbl-oss/evoting

Repository files navigation

EVoting App

if hmac expected bytes error: pallets/itsdangerous#41 (comment)

errors:

  • If the name of your WTF Form field is 'name' doing {{ name() }} will result in a '...not callable erorr' because each form field has a name attribute which is the name of the field gan. So instead just do this: {{ form['name'](class='class-name') }}

  • if you are rendering FieldLists by yourself, don't forget to include a csrf_token tag for each field entry e.g {{ field.csrf_token }}

  • if you want to pass attributes with hyphens like 'data-name' to a wtform field do: {{ form.field(class='style', **{'data-name': 'value'}) }}

About

E-voting app for campuses, first in AUN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published