0

I want to access the images in the static folder the image name is coming dynamically.

I am using this syntax:

"{% static 'theme/one page base/bgimages/"+num+".jpg' %}"

where num is a random number calculated at runtime using javascript. but it is not working

Nidhi
  • 217
  • 1
  • 4
  • 14

1 Answers1

0

By using this this syntax,it will work:

"{% static 'theme/one page base/bgimages/' %}/"+num+".jpg"
Nidhi
  • 217
  • 1
  • 4
  • 14