[Fixed]-How to read the contents of a static file

1👍

The static files are in settings.STATIC_ROOT, and you can open and read them from there with the normal Python file open command.

However, I would question why you are doing this. If you need access to a file in your code, it shouldn’t really be a static file.

Leave a comment