celery-django can't find settings

后端 未结 2 748
醉话见心
醉话见心 2021-02-07 18:01

I have a Django project that uses Celery for running asynchronous tasks. I\'m doing my development on a Windows XP machine.

Starting my Django server (python mana

相关标签:
2条回答
  • 2021-02-07 18:43

    Apparently this is a problem with running Celery on Windows. Using the --settings argument ala python manage.py celeryd start --settings=settings did the trick.

    0 讨论(0)
  • 2021-02-07 18:43

    sys.path must include 'C:\development\SpaceCorps' not 'C:\development\SpaceCorps\src', because he is looking for src.settings, not just settings.

    0 讨论(0)
提交回复
热议问题