Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set DJANGO_SETTINGS_MODULE earlier in celery config
Moved the os.environ.setdefault call to ensure DJANGO_SETTINGS_MODULE is defined before importing Celery, which helps prevent potential configuration issues. This change enhances the reliability of the Celery application initialization process.
- Loading branch information