title: Custom tag not loaded in template
body: <p>I've created a custom tag that I want to use, but Django can't seem to find it.  My <code>templatetags</code> directory is set up like this:</p>
  
  <p><a href="https://i.stack.imgur.com/FMI2O.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FMI2O.png" alt=""></a></p>
  
  <p><b>pygmentize.py</b></p>
  
  <pre><code>from pygments import highlight
  from pygments.lexers import get_lexer_by_name
  from django import template
  from pygments.formatters.other import NullFormatter
  
  register = template.Library()
  
  @register.tag(name='code')
  def do_code(parser,token):
      code = token.split_contents()[-1]
      nodelist = parser.parse(('endcode',))
      parser.delete_first_token()
      return CodeNode(code,nodelist)
  
  class CodeNode(template.Node):
      def __init__(self,lang,code):
          self.lang = lang
          self.nodelist = code
  
      def render(self,context):
          code = self.nodelist.render(context)
          lexer = get_lexer_by_name('python')
          return highlight(code,lexer,NullFormatter())
  </code></pre>
  
  <p>I am trying to use this tag to render code in <code>gameprofile.html</code>.</p>
  
  <p><b>gameprofile.html</b></p>
  
  <pre><code>(% load pygmentize %}
  {% block content %}
      &lt;title&gt;{% block title %} | {{ game.title }}{% endblock %}&lt;/title&gt;
      &lt;div id="gamecodecontainer"&gt;
          {% code %}
              {{game.code}}
          {% endcode %}
      &lt;/div&gt;
  {% endblock content %}
  </code></pre>
  
  <p>When I navigate to <code>gameprofile.html</code>, I get an error:</p>
  
  <blockquote>
    <p>Invalid block tag on line 23: 'code', expected 'endblock'. Did you forget to register or load this tag?</p>
  </blockquote>