Replies: 1 comment
-
Maybe, I find the error of my project! For collaborative development,we put the project dependences (a .venv dir) in another dir, not the project code's dir. Then this "self._settings = symbol_by_name('django.conf:settings') " use path string to import settings find that django libary's original settings ""amqp://user:password@localhost:5672/" covert which I have set! How stupid do I! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello, I have init a new project with django 4.2 + celery 5.2.7 recently.But there are something happend, I have set the celery config or env with CELERY_BROKER_URL,but it not work. Celery always start with broker_url "amqp://user:password@localhost:5672/" which not I want. I try to debug celery, then I found that the conf is right until DjangoWorkerFixup init.
I found that after "self._settings = symbol_by_name('django.conf:settings')", the conf.broker_url change to "amqp://user:password@localhost:5672/" . This confuse me, in the function "symbol_by_name", I get nothing about the change of conf.
Plesase help me, best wish!
Beta Was this translation helpful? Give feedback.
All reactions