五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(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ó)家法律
武城县| 砀山县| 贞丰县| 景洪市| 上栗县| 河南省| 西林县| 南宁市| 玉林市| 枝江市| 鱼台县| 洪湖市| 威远县| 成都市| 桂林市| 上饶市| 农安县| 曲阜市| 祁连县| 多伦县| 陕西省| 灵台县| 钟山县| 漳浦县| 昌平区| 大英县| 乐平市| 房产| 东源县| 苏州市| 大名县| 纳雍县| 沈丘县| 瓦房店市| 陇西县| 淄博市| 鄯善县| 民县| 双牌县| 塔城市| 福建省|