I have to generate a file .bib
I do it in django rest framework, for it in different files like csv I have used the following.
response = HttpResponse(content_type='text/csv')
response['Content-Disposition'] = 'attachment; filename="file.csv"'
The issue is that I've been looking for how to make a response for downloading a file .bib
but I can't find what goes in content_type
it. I hope someone can help me. Thanks in advance.
After trying several things, I managed to find the solution, the response for a file
bibtex
is this: