blechreiz-website/eventplanner_gcal/management/commands/events_gcal_sync.py

11 lines
295 B
Python

from django.core.management.base import BaseCommand
from eventplanner_gcal.models import syncGCalEvents
class Command(BaseCommand):
help = 'Synchronize Google Calendar with locally stored Events'
def handle(self, **options):
print ( "Running Sync")
syncGCalEvents()