config.management.commands package

Config app commands.

Submodules

config.management.commands.clearcache module

Clear cache command

class config.management.commands.clearcache.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: BaseCommand

Command used to clear the cache.

help = 'Clear the cache.'
handle(*args, **options)[source]

Execute the command.

Parameters:
  • args (str) – The arguments of the command.

  • options (str) – The options of the command.

config.management.commands.createsuperuser module

Override the createsuperuser command.

class config.management.commands.createsuperuser.Command(*args, **kwargs)[source]

Bases: Command

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

The actual logic of the command. Subclasses must implement this method.

Parameters:
  • args (str) –

  • options (str) –

config.management.commands.fs2import module

FoolSlide2 importer.

class config.management.commands.fs2import.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: BaseCommand

Command used to import data from a FoolSlide2 installation.

help = 'Imports data from FoolSlide2.'
add_arguments(parser)[source]

Add arguments to the command.

Parameters:

parser (ArgumentParser) – An ArgumentParser instance.

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

Execute the command.

Parameters:
  • args (str) – The arguments of the command.

  • options (str) – The options of the command.

config.management.commands.logs module

Admin logs command

class config.management.commands.logs.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: BaseCommand

Command used to view admin logs.

help = 'Outputs admin logs to a file or stdout.'
add_arguments(parser)[source]

Add arguments to the command.

Parameters:

parser (ArgumentParser) – An ArgumentParser instance.

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

Execute the command.

Parameters:
  • args (str) – The arguments of the command.

  • options (str) – The options of the command.