commands.runserver_with_qclusterΒΆ

Management command to run the development server and Django-Q2 qcluster together.

Module ContentsΒΆ

class commands.runserver_with_qcluster.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]ΒΆ

Bases: django.core.management.base.BaseCommand

Run the Django development server and Django-Q2 qcluster in parallel.

This command starts both processes and handles shutdown gracefully when Ctrl+C is pressed.

help = 'Run the Django development server and Django-Q2 qcluster together'[source]ΒΆ
add_arguments(parser)[source]ΒΆ

Add command line arguments.

Parameters:

parser (Any)

Return type:

None

handle(*args, **options)[source]ΒΆ

Execute the command.

Parameters:
  • args (Any)

  • options (Any)

Return type:

None