没有合适的资源?快使用搜索试试~ 我知道了~
flasky_upload:Miguel Grinberg 在他的 Flask 书中的flask 应用程序实现了用户图像上传而不...
共86个文件
py:44个
html:25个
txt:8个
需积分: 8 0 下载量 16 浏览量
2021-07-08
14:03:01
上传
评论
收藏 405KB ZIP 举报
温馨提示
带有用户配置文件图像上传的 Flasky 该存储库包含 Miguel Grinberg 的 O'Reilly 书籍的源代码示例。 这个 repo 正在进行中。 我正在(经 Miguel 同意)编辑用户个人资料图片的源代码,以接受用户上传的图片,而不是使用 Gravatar 服务。 请继续,因为我会随着我的进展更新 README.md 文件。 这是一个学习练习,可能包含错误和写得不好的代码。 去做: 允许用户从编辑个人资料页面上传图片 更改用户模型以接受图像路径作为字符串 配置镜像目录 更改 EditProfileForm 类以包含 user_uploaded_avatar 编辑 views.py 以在实例化 EditProfileForm 时包含指定的用户图像属性。 相应地,在 html 文件中包含个人资料图像的 url/路径。 这还不是一个完整的列表,将随着项目的进展进行更新
资源推荐
资源详情
资源评论
收起资源包目录
flasky_upload-master.zip (86个子文件)
flasky_upload-master
.gitignore 415B
app
templates
_posts.html 2KB
edit_profile.html 318B
_comments.html 2KB
error_page.html 229B
auth
unconfirmed.html 588B
email
change_email.html 439B
confirm.txt 252B
reset_password.html 510B
confirm.html 459B
change_email.txt 240B
reset_password.txt 303B
change_email.html 302B
login.html 483B
reset_password.html 290B
register.html 274B
change_password.html 292B
_macros.html 1KB
moderate.html 411B
index.html 1KB
mail
new_user.txt 37B
new_user.html 44B
edit_post.html 343B
followers.html 907B
500.html 198B
post.html 564B
403.html 174B
user.html 3KB
base.html 3KB
404.html 179B
__init__.py 1KB
email.py 673B
auth
__init__.py 85B
views.py 6KB
forms.py 3KB
api_1_0
errors.py 625B
__init__.py 124B
authentication.py 1KB
comments.py 2KB
users.py 2KB
decorators.py 411B
posts.py 2KB
static
favicon.ico 1KB
styles.css 2KB
models.py 14KB
decorators.py 503B
main
errors.py 1018B
__init__.py 220B
views.py 11KB
forms.py 3KB
exceptions.py 44B
LICENSE 1KB
README.md 1KB
config.py 3KB
tests
test_user_model.py 7KB
__init__.py 0B
test_selenium.py 3KB
test_api.py 10KB
test_client.py 2KB
test_basics.py 563B
IMG_0001.JPG 351KB
migrations
env.py 2KB
alembic.ini 770B
script.py.mako 412B
versions
f5526e304cb_.py 504B
288cd3dc5a8_rich_text_posts.py 606B
51f5ccfba190_comments.py 1KB
4460fd33d982_.py 506B
1e5d6d22ec26_.py 506B
190163627111_account_confirmation.py 616B
d66f086b258_user_information.py 1KB
456a945560f6_login_support.py 863B
434b89278acd_.py 612B
38c4e85512a9_initial_migration.py 1KB
56ed7d33de8d_user_roles.py 850B
29250aebe818_.py 504B
198b0eebcf9_caching_of_avatar_hashes.py 628B
2356a38169ea_followers.py 908B
3fa20ea9b8e9_.py 506B
1b966e7f4b9e_post_model.py 983B
README 38B
requirements
dev.txt 122B
common.txt 416B
prod.txt 14B
heroku.txt 63B
manage.py 2KB
共 86 条
- 1
资源评论
乘风破浪的海伦
- 粉丝: 28
- 资源: 4546
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功