second attempt to add the VCF exporter

The VCF exporter finally generates output that can be used in R.
4 months ago https://github.com/cbmi/serrano/commit/56aba3ab7a23dd8bf322a9d577fa64e686dfc9ef

It appears the middleware is specified after the CSRF middleware in the settings file which is why it’s not being respected. I will move that as well with the flake8 fix.

On Jun 20, 2014, at 11:17 AM, awenocur <notifications@github.com> wrote:

> In varify/conf/urls.py:
> 
> > @@ -31,6 +33,9 @@
> >      url(r'^sample/', TemplateView.as_view(template_name='index.html'),
> >          name='sample'),
> >  
> > +    url(r'^api/data/export/vcf/$',
> > +        csrf_exempt(VcfExporterResource()), name='vcf'),
> I exempted this, because the csrf check fails when a tool other than a Web browser invokes the exporter with a POST request. How recently was that feature added to token authentication? I added that under an older version of Serrano.
> 
> —
> Reply to this email directly or view it on GitHub.
>