1 from django
.core
.management
.commands
.syncdb
import Command
as Original
4 class Command(Original
):
6 Our own version of syncdb that obeys the DISABLE_SYNCDB setting.
8 def handle_noargs(self
, **options
):
9 from django
.conf
import settings
10 if getattr(settings
, 'DISABLE_SYNCDB', False):
12 'Use dmigrations, not syncdb - "%s help dmigrate" for help\n'
17 super(Command
, self
).handle_noargs(**options
)