I have a Model called Game and in that model i have the attribute game_image where i store a name of an image i want to search in a folder, for example: example.jpg, and i wanted to use that atributte inside a form
this is the Game Model code
class Game(models.Model):
game_image = models.CharField(max_length=200, default='DEFAULT VALUE')
i wanted to use the attribute here, instead of example.jpg i wanted to get game_image and search for the image in the folder according to the attribute
this is the code i have:
<img src="{% static 'app/images/example.jpg' %}" />
i wanted something like this:
<img src="{% static 'app/images/game.image' %}" />
I understand that this question is probably really dumb but i would aprecciate any help, if you need more code just say, thanks