samedi 7 septembre 2019

If statement in django template

I have a if statement to test if the categorie of the file is audio and I want to show the html audio tag if it is true.

I tried to remove the if statement juste to test the audio tag and it is working just fine.



The output is when it is an audio file it show nothing. I inspected the code in the browser and the audio line is not showing.

Aucun commentaire:

Enregistrer un commentaire