title: Django - serving an ical file
body: <p>I'm server an icalender file through django_ical. Problem is that the file is named download.ics. I'm trying to change this to MyCalender.ics. If found this old snippet. I would prefer using django_ical, because it ingerates nicely with django syndication.</p>
  
  <pre><code>cal = vobject.iCalendar()
  cal.add('method').value = 'PUBLISH'  # IE/Outlook needs this
  for event in event_list:
       vevent = cal.add('vevent')
  icalstream = cal.serialize()
  response = HttpResponse(icalstream, mimetype='text/calendar')
  response['Filename'] = 'filename.ics'  # IE needs this
  response['Content-Disposition'] = 'attachment; filename=filename.ics'
  </code></pre>