最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

How to rightly integrate celery into Django

2023-07-03 21:37 作者:目標(biāo)力扣Knight  | 我要投稿

django.core.exceptions.ImproperlyConfigured: Requested settings, but settings are not configured.

official document:


the steps to solve problems:

  • compare with teacher’s configuration

  • revise previous notes.

  • seek for configuration in official document website.

  • change the source of configuration to single file.

  • after startup, upgrade variable names based on official document

I found that if I replace the variable, which is currently written in uppercase as `CELERY`, with a lowercase variable in version 6.0, I won't be able to use the configuration attribute in `app.config_from_object('django.conf:settings', namespace='CELERY')`. As a result, I will only be able to use a single file to configure settings for Celery.

Afterwards, I restored the configuration in the active settings of Django and clicked on the function definition.

I discovered that I can create the settings for Celery on my own. Here is the function definition: `celery.app.base.Celery.config_from_object`.


the original configuration:

?


Successful.


How to rightly integrate celery into Django的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
伊宁市| 泽库县| 韶关市| 郑州市| 辉县市| 岳西县| 法库县| 景德镇市| 多伦县| 湾仔区| 丘北县| 会泽县| 岳阳县| 盖州市| 砚山县| 长垣县| 万全县| 贺州市| 四平市| 梁河县| 吉安县| 景宁| 台江县| 黄浦区| 桑日县| 弋阳县| 银川市| 罗源县| 甘泉县| 闵行区| 上虞市| 汉源县| 永济市| 宜昌市| 白朗县| 乌海市| 泌阳县| 安龙县| 新化县| 昭觉县| 拜泉县|