title: how to use jinja2 in Django 3.1
body: <p>Now I am using the <strong>Django 3.1</strong> template engine but I am not satisfied with it.</p>
  <p>But I see that <strong>jinja2</strong> template engine is very powerful that it.</p>
  <p>Thought Django says it has support for jinja2 template engine and I was following <a href="https://docs.djangoproject.com/en/3.1/topics/templates/" rel="nofollow noreferrer">this</a> <strong>Django documentation</strong>,
  but I couldn't use that.</p>
  <pre><code># settings.py
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.jinja2.Jinja2',
          'DIRS': [os.path.join(BASE_DIR, 'templates')],
          'APP_DIRS': True,
          'OPTIONS': {
              'context_processors': [
                  'django.template.context_processors.debug',
                  'django.template.context_processors.request',
                  'django.contrib.auth.context_processors.auth',
                  'django.contrib.messages.context_processors.messages',
              ],
          },
      },
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': [],
          'APP_DIRS': True,
          'OPTIONS': {
              'context_processors': [
                  'django.template.context_processors.debug',
                  'django.template.context_processors.request',
                  'django.contrib.auth.context_processors.auth',
                  'django.contrib.messages.context_processors.messages',
              ],
          },
      }
  ]
  </code></pre>
  <p>Browser Error:</p>
  <pre><code>(&quot;Encountered unknown tag 'url'. Jinja was looking for the following tags: 'endfor' or 'else'. The innermost block that needs to be closed is 'for'.&quot;,)
  </code></pre>
  <p>So, please tell me how do I do it?</p>