[Answered ]-Django: Why does my custom command starts the server?

1👍

The server isn’t started, it’s checked by django automatically.

This behavior can be disabled by setting requires_system_checks to False like so;

class Command(BaseCommand):
  help = "Release the spiders"
  requires_system_checks = False

  def handle(self, *args, **options):
      # code goes here

Or by using the skip-checks argument with the command;

python3 manage.py crawl --skip-checks
👤Sy Ker

Leave a comment