How to render a variable in a django template?
问题 My goal is to write dynamically some urls of images in the HTML page. Urls are stored in a database. To do so, first I am trying to render a simple varable in a template. Reading the docs and other sources, it should be done in 3 steps: For the configuration: in settings.py TEMPLATES = [ { 'OPTIONS': { 'debug': DEBUG, 'context_processors': [ … 'django.template.context_processors.request', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template