[Django]-Using ViewerJS with Django

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

http://localhost:8000/static/gutenberg/js/ViewerJS/index.html/#/static/gutenberg/docs/files/something.pdf“.

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.

Leave a comment