def icalendar(request): from courses.bridge.rpi import export_schedule requested_crns = request.GET.getlist('crn') response = HttpResponse(export_schedule(requested_crns)) response['Content-Type'] = 'text/calendar' response['Content-Disposition'] = 'attachment;filename=schedule.ics' return response
def icalendar(request): from courses.bridge.rpi import export_schedule requested_crns = request.GET.getlist('crn') response = HttpResponse(export_schedule(requested_crns)) response['Content-Type'] = 'text/calendar' response['Content-Disposition'] = 'attachment;filename=schedule.ics' return response