title: Django template - "Template" object has no attribute "split"
body: <p>I am using jinja2 to render a template in django:</p>
  
  <p>Template settings:</p>
  
  <pre><code>TEMPLATES = [
      {
          "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",
              ]
          },
      },
      {"BACKEND": "django.template.backends.jinja2.Jinja2", "DIRS": ["utils/"]},
  ]
  </code></pre>
  
  <p>Calling code:</p>
  
  <pre><code>html_template = get_template("email/contact/contact.html") #completes successfully - template definitely found
  
  html_message = render_to_string(html_template, context)
  </code></pre>
  
  <p>This gives the error:</p>
  
  <pre><code>AttributeError: 'Template' object has no attribute 'split'
  </code></pre>
  
  <p>Googling this only shows solutions for:</p>
  
  <p>AttributeError: 'NoneType' object has no attribute 'split'</p>
  
  <p>Which suggests that the template is not found. This is not the case here.</p>