Make the maintenance page a hardcoded response
Show the maintenance message on the requested page, instead of
redirecting to a specific url which then displays a page with the
maintenance notice.
from django.core.management.base import AppCommand, CommandError
class Command(AppCommand):
help = "RENAMED: see 'sqlcustom'"
def handle(self, *apps, **options):
raise CommandError("This command has been renamed. Use the 'sqlcustom' command instead.")