3👍
✅
Django’s static server is only for development, and is purposely limited. As the error says, it doesn’t deal with directory indexes.
You could probably make this work by making the link go directly to /static/js/ViewerJS/index.html
.
0👍
I have just the same problem. I am trying to access a file located at static/gutenberg/docs/files/something.pdf in Django
The url I created is
Inspite of adding index.html to the complete it wouldn’t work.I am not sure why.
The path is right because I am able to download the file when I run “/static/gutenberg/docs/files/something.pdf” on my browser.
- [Django]-How do I write a Django template tag for access control?
- [Django]-Conditional Logic in django forms
- [Django]-Django distinct on case sensitive entries
- [Django]-How to resize and crop an image into a square in Django?
- [Django]-Error while using inspectdb in Django
Source:stackexchange.com