Skip to content

Usage with Django and Celery #46

Open
@espoirMur

Description

@espoirMur

I struggle a lot to load environments variables in from settings in celery.py file when working with both Django and celery.

since I was loading env from manage.py I had issued to load use them in a celery.py file.
I had to load them twice, in manage.py and celery.py.

What is the problem to load the environment directly in the settings.py file?
If there is no problem with that approach, we can update the readme by saying that we can load them in settings.py file, not in manage.py

PS: If this doesn't look clear, I will come back to update the description.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions