import os
from django.core.management.base import BaseCommand


class Command(BaseCommand):

    def run_from_argv(self, argv):
        from celery.bin.celery import main
        main(self.get_argv(argv))

    def get_argv(self, argv):
        return ['celery', '-A', self.get_celery_module_name()] + argv[2:]

    def get_celery_module_name(self):
        settings_module = os.environ['DJANGO_SETTINGS_MODULE']
        project_module = settings_module.split('.', 1)[0]
        return project_module + '.celery'

9f8c23e1982373d0d9d982460d525bb12c53c16d
<mask token>


class Command(BaseCommand):
    <mask token>

    def get_argv(self, argv):
        return ['celery', '-A', self.get_celery_module_name()] + argv[2:]
    <mask token>

<mask token>


class Command(BaseCommand):

    def run_from_argv(self, argv):
        from celery.bin.celery import main
        main(self.get_argv(argv))

    def get_argv(self, argv):
        return ['celery', '-A', self.get_celery_module_name()] + argv[2:]
    <mask token>

<mask token>


class Command(BaseCommand):

    def run_from_argv(self, argv):
        from celery.bin.celery import main
        main(self.get_argv(argv))

    def get_argv(self, argv):
        return ['celery', '-A', self.get_celery_module_name()] + argv[2:]

    def get_celery_module_name(self):
        settings_module = os.environ['DJANGO_SETTINGS_MODULE']
        project_module = settings_module.split('.', 1)[0]
        return project_module + '.celery'

import os
from django.core.management.base import BaseCommand


class Command(BaseCommand):

    def run_from_argv(self, argv):
        from celery.bin.celery import main
        main(self.get_argv(argv))

    def get_argv(self, argv):
        return ['celery', '-A', self.get_celery_module_name()] + argv[2:]

    def get_celery_module_name(self):
        settings_module = os.environ['DJANGO_SETTINGS_MODULE']
        project_module = settings_module.split('.', 1)[0]
        return project_module + '.celery'
