# CHANGED: show warning if profiler is enabled, so you don't mistakenly upload
# with non-production settings. Also, added --nosyncdb switch.
from django.conf import settings
from django.core.management import call_command
from django.core.management.base import BaseCommand
# We don't really want to use that one though, it just executes this one
# Reset the logging level to WARN as appcfg will spew tons of logs on INFO
+ print 'Running syncdb.'
+ # Wait a little bit for deployment to finish
+ for countdown in range(9, 0, -1):
+ sys.stdout.write('%s\r' % countdown)
from django.db import connections
for connection in connections.all():
if hasattr(connection, 'setup_remote'):
- print 'Running syncdb.'
- # Wait a little bit for deployment to finish
call_command('syncdb', remote=True, interactive=True)
if getattr(settings, 'ENABLE_PROFILER', False):