Skip to content

Instantly share code, notes, and snippets.

Last active Nov 11, 2017
What would you like to do?
django_extensions reset_db is incompatible with any .py file that accesses the database that's loaded during a `./` system checks cycle. This gist simply overrides the default `reset_db` command to disable these checks.
from import Command as ResetDBCommand
class Command(ResetDBCommand):
requires_system_checks = False
help = "Override django-extensions reset_db and disable system_checks."
def handle(self, *args, **options):
self.stdout.write("Executing customized version of reset_db that disables system checks.")
super().handle(*args, **options)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment