1 Star 0 Fork 0

hoorayIdeas/ideabbs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
celery_worker.py 553 Bytes
一键复制 编辑 原始数据 按行查看 历史
Peter Justin 提交于 2017-03-15 10:45 . Fixing a lot of PEP8 errors
#!/usr/bin/env python
"""
flaskbb.celery_worker
~~~~~~~~~~~~~~~~~~~~~
Prepares the celery app for the celery worker.
To start celery, enter this in the console::
celery -A celery_worker.celery --loglevel=info worker
:copyright: (c) 2016 by the FlaskBB Team.
:license: BSD, see LICENSE for more details.
"""
import os
from flaskbb.app import create_app
from flaskbb.extensions import celery # noqa
_basepath = os.path.dirname(os.path.abspath(__file__))
app = create_app(config=os.path.join(_basepath, 'flaskbb.cfg'))
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/hooroo/ideabbs.git
git@gitee.com:hooroo/ideabbs.git
hooroo
ideabbs
ideabbs
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385