Friday, February 7, 2014

Re: How to display file extension in django template ?

Hello,

In that case, I would use a filter that return os.path.splitext(myfile.path)[1] (the result will be '.jpeg' with your example).

Regards,
Michel


No comments:

Post a Comment