没有合适的资源?快使用搜索试试~ 我知道了~
flasky-with-celery:如何将Celery整合到结构良好的Flask应用程序中
共81个文件
py:39个
html:25个
txt:8个
需积分: 18 1 下载量 186 浏览量
2021-05-14
12:43:36
上传
评论
收藏 53KB ZIP 举报
温馨提示
芹菜烧瓶 该存储库包含我在O'Reilly的书中介绍的应用程序的版本,该版本演示了如何运行Celery。 该应用程序与本书中的应用程序大致相同。 唯一的变化是,电子邮件的发送是由Celery任务而不是后台线程处理的。 您可以查看以准确了解所做的更改。 快速设置 克隆此存储库。 创建一个virtualenv并安装需求( pip install requirements/dev.txt ) 运行数据库迁移( python manage.py db upgrade ) 打开第二个终端窗口,然后启动本地Redis服务器(如果您使用的是Linux或Mac,请执行run-redis.sh来安装和启动私有副本)。 打开第三个终端窗口。 将两个环境变量MAIL_USERNAME和MAIL_PASSWORD设置为有效的Gmail帐户凭据(这些凭据将用于通过Gmail的SMTP服务器发送电子邮件)。
资源推荐
资源详情
资源评论
收起资源包目录
flasky-with-celery-master.zip (81个子文件)
flasky-with-celery-master
run-redis.sh 205B
tests
test_selenium.py 3KB
test_basics.py 563B
test_user_model.py 7KB
__init__.py 0B
test_api.py 10KB
test_client.py 2KB
celery_worker.py 150B
LICENSE 1KB
app
models.py 13KB
auth
__init__.py 85B
views.py 6KB
forms.py 3KB
templates
404.html 179B
auth
change_password.html 292B
reset_password.html 290B
login.html 483B
change_email.html 302B
unconfirmed.html 588B
register.html 274B
email
change_email.txt 240B
reset_password.html 510B
reset_password.txt 303B
change_email.html 439B
confirm.txt 252B
confirm.html 459B
_comments.html 2KB
_macros.html 1KB
index.html 1KB
edit_profile.html 287B
edit_post.html 343B
base.html 3KB
403.html 174B
error_page.html 229B
500.html 198B
post.html 564B
user.html 3KB
mail
new_user.html 44B
new_user.txt 37B
moderate.html 411B
followers.html 907B
_posts.html 2KB
static
styles.css 2KB
favicon.ico 1KB
email.py 570B
decorators.py 503B
__init__.py 1KB
main
errors.py 1018B
__init__.py 220B
views.py 10KB
forms.py 2KB
api_1_0
comments.py 2KB
users.py 2KB
authentication.py 1KB
errors.py 625B
decorators.py 411B
posts.py 2KB
__init__.py 124B
exceptions.py 44B
migrations
versions
38c4e85512a9_initial_migration.py 1KB
198b0eebcf9_caching_of_avatar_hashes.py 628B
2356a38169ea_followers.py 908B
56ed7d33de8d_user_roles.py 850B
288cd3dc5a8_rich_text_posts.py 606B
51f5ccfba190_comments.py 1KB
d66f086b258_user_information.py 1KB
456a945560f6_login_support.py 863B
1b966e7f4b9e_post_model.py 983B
190163627111_account_confirmation.py 616B
alembic.ini 770B
README 38B
env.py 2KB
script.py.mako 412B
requirements
heroku.txt 63B
prod.txt 14B
dev.txt 122B
common.txt 519B
manage.py 2KB
.gitignore 372B
config.py 3KB
README.md 2KB
共 81 条
- 1
资源评论
WillisWang
- 粉丝: 22
- 资源: 4701
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功