title: Invalid block tag: 'static'
body: <p>Server returned 
  <code>TemplateSyntaxError at /
  Invalid block tag: 'static'</code>
  on this line: <code>&lt;img src="{% static 'icon/logo.png' %}"&gt;</code>.</p>
  
  <p>The whold html file is like this (it's an html file {% include %}ed by another one):</p>
  
  <pre><code>{% load staticfiles %}
  &lt;div class="header"&gt;
      &lt;nav&gt;
        &lt;ul class="nav nav-pills pull-right"&gt;
          &lt;li role="presentation"&gt;&lt;a href="{% url 'offer rank' %}"&gt;潮品榜&lt;/a&gt;&lt;/li&gt;
          &lt;li role="presentation"&gt;&lt;a href="{% url 'user rank' %}"&gt;达人榜&lt;/a&gt;&lt;/li&gt;
          &lt;li role="presentation"&gt;&lt;a href="#" data-toggle="modal" data-target="#start"&gt;登陆&lt;/a&gt;&lt;/li&gt;
          &lt;li role="presentation"&gt;&lt;a href="#" data-toggle="modal" data-target="#start"&gt;注册&lt;/a&gt;&lt;/li&gt;
          {% if debug_users %}
          &lt;li class="dropdown"&gt;
            &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"&gt;切换用户&lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
            &lt;ul class="dropdown-menu" role="menu"&gt;
              {% for debug_user in debug_users %}
              &lt;li&gt;&lt;a href="{% url 'debug login' debug_user.id %}"&gt;{% if debug_user.kbjuser.user_type == '1' %}达人{% else %}商家{% endif %}: {{ debug_user.username }}&lt;/a&gt;&lt;/li&gt;
              {% endfor %}
            &lt;/ul&gt;
          &lt;/li&gt;
          {% endif %}
        &lt;/ul&gt;
      &lt;/nav&gt;
       &lt;h3&gt;&lt;img src="{% static 'icon/logo.png' %}"&gt;
          &lt;a href="{% url 'home' %}" class="text-muted"&gt;口碑街&lt;/a&gt;
      &lt;/h3&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And settings.py is like this:</p>
  
  <pre><code># Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/1.7/howto/static-files/
  
  STATIC_URL = '/static/'
  STATIC_ROOT = os.path.join(BASE_DIR, "static/")
  
  MEDIA_URL = '/media/'
  MEDIA_ROOT = os.path.join(BASE_DIR, "media/")
  
  
  from hw.settings import *
  from useraccess.settings import *
  
  STATICFILES_FINDERS = (
      'django.contrib.staticfiles.finders.FileSystemFinder',
      'django.contrib.staticfiles.finders.AppDirectoriesFinder',
      # other finders..
      'compressor.finders.CompressorFinder',
  )
  
  COMPRESS_ENABLED = True
  </code></pre>
  
  <p>I can't figure out what happens here.</p>
  
  <p>Here are some more lines in settings.py:</p>
  
  <pre><code># Application definition
  
  INSTALLED_APPS = (
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'mptt',
      'hw',
      'useraccess',
      'proxy',
      'compressor',
      'sekizai',
  )
  
  MIDDLEWARE_CLASSES = (
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'useraccess.middleware.VisitCollectMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
  
  )
  
  TEMPLATE_CONTEXT_PROCESSORS = (
      'django.contrib.auth.context_processors.auth',
      'django.core.context_processors.i18n',
      'django.core.context_processors.request',
      'django.core.context_processors.media',
      'django.core.context_processors.static',
      'hw.context_processors.user_info',
      'hw.context_processors.login_form',
      'hw.context_processors.get_all_user',
      'sekizai.context_processors.sekizai',
  )
  
  ROOT_URLCONF = 'ddw.urls'
  
  WSGI_APPLICATION = 'ddw.wsgi.application'
  
  LOGIN_URL = '/login/'
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/gVP0V.jpg" alt="My project folder."></p>