diff --git a/fbr/config/celery.py b/fbr/config/celery.py index 62cbdf3..f55c7b7 100644 --- a/fbr/config/celery.py +++ b/fbr/config/celery.py @@ -8,7 +8,7 @@ celery_app = Celery("fbr_celery") -celery_app.config_from_object("fbr.config.settings.local", namespace="CELERY") +celery_app.config_from_object("django.conf:settings", namespace="CELERY") celery_app.autodiscover_tasks() diff --git a/fbr/manage.py b/fbr/manage.py index f03979a..37003e1 100755 --- a/fbr/manage.py +++ b/fbr/manage.py @@ -1,18 +1,12 @@ -# flake8: noqa - #!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") -import django - -django.setup() - def main(): """Run administrative tasks.""" + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") try: from django.core.management import execute_from_command_line