tinymce_7

This commit is contained in:
alazo 2017-04-12 08:55:48 +02:00
parent ca290769ff
commit 1f9fd92250
2 changed files with 1 additions and 11 deletions

View file

@ -397,7 +397,7 @@ def Download(request, file_name):
def pdf_view(request):
with open(settings.MEDIA_ROOT + '/media/EDS_Calendrier_2017.pdf', 'r') as pdf:
with open(settings.MEDIA_ROOT + 'media/EDS_Calendrier_2017.pdf', 'r') as pdf:
response = HttpResponse(pdf.read().decode('latin-1') , content_type='application/pdf')
response['Content-Disposition'] = 'inline;filename=some_file.pdf'
return response