Oct-02-2017, 04:22 PM
There might be (I didn't see anything while googling, though), but it isn't a super great idea, since Django shouldn't be serving static files. As Larz points out, it'd be trivial to build yourself using os.walk().
What might not be bad, would be to have a python script that's unrelated to Django, that runs once a day or so on a cron job, that just rebuilds an index.html file based on the current contents of the directory. That way you've still got an index, it looks however you want, and you don't have to worry about django serving things it shouldn't.
What might not be bad, would be to have a python script that's unrelated to Django, that runs once a day or so on a cron job, that just rebuilds an index.html file based on the current contents of the directory. That way you've still got an index, it looks however you want, and you don't have to worry about django serving things it shouldn't.