1
I need to make my system see folders that are outside your folder, to render the . pdfs that are inside those folders. I’m using a function in javascript (Vue.js) very simple, similar to this one:
get_doc(doc_name) {
return '/static/pdf_docs/' + doc_name;
}
Only that, besides being inelegant, forces me to leave all . pdf files in Static folder. I tried some procedures but could not. Thanks for your help.
you configured the media?, usually one uses a dedicated server to serve these types of files
– Davi Wesley
@Daviwesley, as I am a beginner in Jango, did not know that it was necessary to make this configuration. Could provide an example of how I can do?
– Antonio Braz Finizola
sorry for the delay, so I’ve never done it in Django but I believe it’s very easy, have a tutorial that shows a simple example of how to do this.
– Davi Wesley