In a django project, I want to open a file "file.png" (from images folder) in "worker.py".
- worker.py
- images
- file.png
- otherfile.png
It works well using the terminal, but when the server call this function I get this error:
[Errno 2] No such file or directory: "images/file.png"
So my question is, where django set relative path? Where should I put file.png to get it in worker.py using open() function?
Thanks