title: Encountered unknown tag 'load'.?
body: <p>I want to add some custom-template-tags.But, {% load userfilters %} => 'load' tag is not working.</p>
  
  <ol>
  <li>settings.py</li>
  </ol>
  
  <pre class="lang-py prettyprint-override"><code># project/settings.py
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.jinja2.Jinja2',
          'DIRS': [
              os.path.join(BASE_DIR, 'html/jinja2'),
          ],
          'APP_DIRS': True,
          'OPTIONS': {
              'environment': 'accountv1.jinja2.environment',
          },
      },
  ]
  </code></pre>
  
  <ol start="2">
  <li>jinja2.py</li>
  </ol>
  
  <pre class="lang-py prettyprint-override"><code># project/jinja2.py
  from django.templatetags.static import static
  from django.urls import reverse
  
  from jinja2 import Environment
  
  
  def environment(**options):
      env = Environment(**options)
      env.globals.update({
          'static': static,
          'url': reverse,
      })
      return env
  </code></pre>
  
  <ol start="3">
  <li>app/templatetags/userfilters.py</li>
  </ol>
  
  <pre class="lang-py prettyprint-override"><code>from django import template
  
  register = template.Library()
  
  
  @register.filter(name='a')
  def a(value):
      return 1
  </code></pre>
  
  <ol start="4">
  <li>views.py</li>
  </ol>
  
  <pre class="lang-py prettyprint-override"><code># use django-rest-framework
  class IndexView(generics.GenericAPIView):
      renderer_classes = [TemplateHTMLRenderer]
      template_name = 'index.html'
  
      def get(self, request, *args, **kwargs):
          return Response({'name': 'max'})
  </code></pre>
  
  <ol start="5">
  <li><p>demo.html</p>
  
  <ul>
  <li>is not working</li>
  </ul></li>
  </ol>
  
  <pre class="lang-html prettyprint-override"><code>{% load userfilters %}
  &lt;!-- custom filter --&gt;
  {{ name|a }}
  </code></pre>
  
  <ul>
  <li>is work</li>
  </ul>
  
  <pre class="lang-html prettyprint-override"><code>&lt;!-- default filter --&gt;
  {{ name|title }}
  </code></pre>
  
  <p>I hope to solve this problem.</p>