blechreiz-website/eventplanner_gcal/views.py

21 lines
345 B
Python
Raw Normal View History

2014-03-08 22:36:25 +01:00
from django.shortcuts import redirect
from eventplanner_gcal.models import syncGCalEvents, syncParticipationFromGoogleToLocal
2014-03-08 22:36:25 +01:00
def runSync( request ):
syncGCalEvents()
return redirect("/")
def gcalApiCallback( request ):
syncParticipationFromGoogleToLocal()
print ( "gcalApiCallback called" )
return redirect("/")