tinymce_7
This commit is contained in:
parent
ca290769ff
commit
1f9fd92250
2 changed files with 1 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue