Python directory list returned to Django template

Posted by Shu on Stack Overflow See other posts from Stack Overflow or by Shu
Published on 2010-03-02T00:50:50Z Indexed on 2010/03/15 0:59 UTC
Read the original article Hit count: 331

Filed under:
|
|

Total Python newb here. I have a images directory and I need to return the names and urls of those files to a django template that I can loop through for links. I know it will be the server path, but I can modify it via JS. I've tried os.walk, but I keep getting empty results.

© Stack Overflow or respective owner

Related posts about python

Related posts about directory-structure