Skip to content

Commit

Permalink
using settings as settings default
Browse files Browse the repository at this point in the history
  • Loading branch information
reinout committed Apr 3, 2024
1 parent be9e2b0 commit 513c090
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions brostar_api/celery.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import os

from celery import Celery

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "brostar_api.settings")
app = Celery("brostar_api")

# Using a string here means the worker doesn't have to serialize
Expand Down

0 comments on commit 513c090

Please sign in to comment.