1
我尝试在web2py的auth用户注册表单中添加一些额外的字段。该部分auth.setting.extra_fields [“AUTH_USER”]是我加入到模型/ db.pyWeb2py:auth用户图像字段错误2
auth = Auth(db)
crud, service, plugins = Crud(db), Service(), PluginManager()
auth.settings.extra_fields['auth_user'] = [
Field('address'),
Field('city'),
Field('zip'),
Field('image','upload')
]
## create all tables needed by auth if not custom tables
auth.define_tables(username=False, signature=False)
除了像场的所有字段似乎做工精细。 但是当我尝试上传的图像“应用更改”, 我的ioerror误差2没有这样的文件或目录:“...... JPG”
Web服务器在本地运行和图像是在我的电脑。
我是否缺少任何东西? 谢谢!