[Answered ]-How to read .env file in django celery

1πŸ‘

βœ…

I solved this problem

I added it to settings.py instead of celery.py.
dotenv.read_dotenv (β€˜./. env’)

Hope this helps those who face the same problem

πŸ‘€J Zero

Leave a comment