Hi,
I need to make something very simple but it seems all exmplesI found on the web, do not work, so I am sure this group will find the right solution (please consider I am a newbie so please be specific and detailed in your reply):
I just need to store a pdf file in my sytic files and have a link on a page which opens it.
Best solution I found is not working...:
view.py:
@login_required
def pricelist (request):
template='pricelist.pdf'
return render (request, template ,{})
url.py:
url(r'^pricelist/$', 'aero.views.pricelist', name='pricelist'),
url link in the page: <a href="{{ MEDIA_URL }}/pdf/pricelistAR.pdf">Download</a>
anyone can help? thanks very much