python - 有没有办法,我们可以在flask的WTforms中使用表单字段的小标签文本?
问题描述
分享一小部分代码:
<label>6. Are there any instruction **************** to help with similar problems?</label><br><br>
Yes <input type="radio" name="Are there any instruction **************** to help with similar problems?"
value="yes" required /><br>
No <input type="radio" name="Are there any instruction ****************** to help with similar problems?"
value="no" checked="checked"/><br>
<input type="text" name="Are there any instruction ****************** to help with similar problems?"
/><br><br>
我需要将问题和答案都保存到数据库中。现在,我不想在forms.py 中有标签这样长的问题来验证在flask 中使用WTForms。如果我可以分配一个引用较大标签的 id 并且仍然能够将问题/答案保存到数据库,有没有办法?
解决方案
推荐阅读
- java - 有没有办法从android的firestore中的数组中获取数据
- c# - 如何使用字典
在视图(jQuery)? - laravel - 搜索后保留serach页面中的下拉值或在laravel中刷新页面
- ios - 如何知道核心数据已经完成了它的任务 swift iOS?
- intellij-idea - 如何在intellij中打开模拟器?
- php - 使用 Bootstrap 4 在我的卡片标题底部显示了额外的空白
- ruby-on-rails - 在创建中保存 json 响应
- android - VideoView 找不到视频 Android
- python - 有没有另一种方法可以用白色填充旋转图像之外的区域?'fillcolor' 不适用于旧版本的 Python
- android - 将对象添加到 GSON 数组 android studio