{"action":"created","issue":{"url":"https://api.github.com/repos/greyli/helloflask/issues/119","repository_url":"https://api.github.com/repos/greyli/helloflask","labels_url":"https://api.github.com/repos/greyli/helloflask/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/greyli/helloflask/issues/119/comments","events_url":"https://api.github.com/repos/greyli/helloflask/issues/119/events","html_url":"https://github.com/greyli/helloflask/issues/119","id":393861214,"node_id":"MDU6SXNzdWUzOTM4NjEyMTQ=","number":119,"title":"请教：Celery在Flask的相关用法","user":{"login":"BobcatsII","id":26770566,"node_id":"MDQ6VXNlcjI2NzcwNTY2","avatar_url":"https://avatars2.githubusercontent.com/u/26770566?v=4","gravatar_id":"","url":"https://api.github.com/users/BobcatsII","html_url":"https://github.com/BobcatsII","followers_url":"https://api.github.com/users/BobcatsII/followers","following_url":"https://api.github.com/users/BobcatsII/following{/other_user}","gists_url":"https://api.github.com/users/BobcatsII/gists{/gist_id}","starred_url":"https://api.github.com/users/BobcatsII/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BobcatsII/subscriptions","organizations_url":"https://api.github.com/users/BobcatsII/orgs","repos_url":"https://api.github.com/users/BobcatsII/repos","events_url":"https://api.github.com/users/BobcatsII/events{/privacy}","received_events_url":"https://api.github.com/users/BobcatsII/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-24T11:10:39Z","updated_at":"2018-12-25T02:21:25Z","closed_at":null,"author_association":"NONE","body":"打扰您了，上周末两天遇到celery的相关问题一直卡着过不去，google搜索和官方文档相关的都看了，大体上晓得在单个文件中该怎么写，但是在我写的网站（套用您的albumy的壳子，页面地址：https://github.com/BobcatsII/Opps.git ），不知道该把celery的配置放在哪里，官方文档和google查的例子都是放在同一个文件的app.py内或者是将extensions.py和__init__.py融合在一起的文件内，我的网站内的celery配置在如下文件中，方便您查看：[ __init__.py，extensions.py，settings.py，新增tasks.py，路由blueprint/deploy.py ]，导致我在用celery命令（celery -A opps.tasks.celery   worker -l info）启动的时候，加载的celery连接rabbitmq总是默认连接 “[2018-12-24 15:17:12,299: INFO/MainProcess] Connected to amqp://guest:**@127.0.0.1:5672//”，不是我settings.py里面设定的连接，而且启动后我在页面点击\"开始部署\"的时候，celery进程提示我\"程序上下文\"有问题，虽然按照官方文档给的样例写了上去，我感觉我应该是对 extensions.py和__init__.py这两个文件的理解有问题，还请您抽空能指点一下我问题出在哪里，谢谢您！！"},"comment":{"url":"https://api.github.com/repos/greyli/helloflask/issues/comments/449788783","html_url":"https://github.com/greyli/helloflask/issues/119#issuecomment-449788783","issue_url":"https://api.github.com/repos/greyli/helloflask/issues/119","id":449788783,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTc4ODc4Mw==","user":{"login":"BobcatsII","id":26770566,"node_id":"MDQ6VXNlcjI2NzcwNTY2","avatar_url":"https://avatars2.githubusercontent.com/u/26770566?v=4","gravatar_id":"","url":"https://api.github.com/users/BobcatsII","html_url":"https://github.com/BobcatsII","followers_url":"https://api.github.com/users/BobcatsII/followers","following_url":"https://api.github.com/users/BobcatsII/following{/other_user}","gists_url":"https://api.github.com/users/BobcatsII/gists{/gist_id}","starred_url":"https://api.github.com/users/BobcatsII/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BobcatsII/subscriptions","organizations_url":"https://api.github.com/users/BobcatsII/orgs","repos_url":"https://api.github.com/users/BobcatsII/repos","events_url":"https://api.github.com/users/BobcatsII/events{/privacy}","received_events_url":"https://api.github.com/users/BobcatsII/received_events","type":"User","site_admin":false},"created_at":"2018-12-25T02:21:25Z","updated_at":"2018-12-25T02:21:25Z","author_association":"NONE","body":"我两种方式都试试，哈哈"}}
{"actor":{"display_login":"BobcatsII"}}