web2py의 인증 사용자 등록 양식에 몇 가지 추가 필드를 추가하려고합니다. 부품 auth.setting.extra_fields [ 'AUTH_USER는'] 내가Web2py : auth user image 필드 오류 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)
이미지 필드를 제외한 모든 필드는 작업 벌금을 보이는 모델/db.py에 추가 된 것입니다. 그러나 내가 IO 오류 있고 Error2 해당 파일이나 디렉토리를 가지고, '변경 사항 적용'할 수있는 이미지를 업로드하려고하면 ".... JPG는"
웹 서버는 로컬로 실행하고 이미지가 내 컴퓨터에 있습니다.
누락 된 부분이 있습니까? 감사합니다.