from django.core.management.base import NoArgsCommand from eventplanner_gcal.google_sync import syncFromLocalToGoogle class Command(NoArgsCommand): help = 'Synchronize Google Calendar with locally stored Events' def handle_noargs(self, **options): print ( "Running Sync") created, deleted = syncFromLocalToGoogle() print ( "Created %d and deleted %d events" % (created,deleted) )