国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(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ó)家法律
灵寿县| 绥棱县| 信宜市| 台山市| 伊春市| 中牟县| 绍兴市| 北海市| 巴林左旗| 灌云县| 永川市| 两当县| 太仆寺旗| 西安市| 石首市| 文水县| 新竹市| 锡林郭勒盟| 湘西| 琼海市| 杂多县| 兴隆县| 滨州市| 陵水| 博乐市| 凤阳县| 白朗县| 临沂市| 连南| 塔城市| 昭觉县| 庆安县| 吉木萨尔县| 迭部县| 青岛市| 阳朔县| 卢龙县| 原平市| 北宁市| 沁阳市| 平阴县|