getting file size for all dict files to be downloaded. coming to be 400mb or so.
[worddb.git] / libs / dmigrations / management / commands / syncdb.py
blobf84c7a475569a4475e5f8fee034fa3e4cc9bae58
1 from django.core.management.commands.syncdb import Command as Original
2 import sys
4 class Command(Original):
5 """
6 Our own version of syncdb that obeys the DISABLE_SYNCDB setting.
7 """
8 def handle_noargs(self, **options):
9 from django.conf import settings
10 if getattr(settings, 'DISABLE_SYNCDB', False):
11 sys.stderr.write(
12 'Use dmigrations, not syncdb - "%s help dmigrate" for help\n'
13 % sys.argv[0]
15 sys.exit(1)
16 else:
17 super(Command, self).handle_noargs(**options)