There are some files in a directory, and I want to return url of every file in the directory. How can i do that in django ?
dir_id_1
-->img1.png
-->img2.png
-->img3.png
dir_id_2
-->img4.png
When user send a get request to correspond endpoint with the directory name, It should return urls of images. Something like this.
[10.10.10.10:8000/.../dir_id_1/img1.png, 10.10.10.10:8000/.../dir_id_1/img2.png, 10.10.10.10:8000/.../dir_id_1/img2.png]
PS: I am keeping these images in filesystem, not in db.