title: Django 2 - Could not parse the remainder: ' 'upvote.png'' from 'static 'upvote.png''
body: <p>I am having a issue regarding static files and Django.</p>
  
  <p>My main project is called "produchunt" (it is a clone of the real website) which contains "account" and "products".</p>
  
  <p>I successfully add a static folder in "producthunt" for static file.</p>
  
  <p>Now, I am trying to add a "upvote" image on the products app.</p>
  
  <p>I did the following:</p>
  
  <ul>
  <li>Add the image on the static folder of the main app "producthunt"</li>
  <li>Write the template of "products"</li>
  <li>Run python3 manage.py collectstatics</li>
  </ul>
  
  <p>BUT I am having this error: <strong>Could not parse the remainder: ' 'upvote.png'' from 'static 'upvote.png''</strong></p>
  
  <p>The urls.py in "producthunt" is:</p>
  
  <pre><code>urlpatterns = [
      path('admin/', admin.site.urls),
      path('', views.home, name='home'),
      path('accounts/', include('accounts.urls')),
      path('products/', include('products.urls')),
  ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  </code></pre>
  
  <p>The settings.py in "producthunt" is:</p>
  
  <pre><code>STATICFILES_DIRS = [
      os.path.join(BASE_DIR, 'producthunt/static/'),
  ]
  
  STATIC_ROOT = os.path.join(BASE_DIR, 'static')
  STATIC_URL = '/static/'
  
  MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
  MEDIA_URL = '/media/'
  </code></pre>
  
  <p>The url.py in "products" is:</p>
  
  <pre><code>from django.urls import path, include
  from . import views
  
  urlpatterns = [
      path('create', views.create, name='create'),
      path('&lt;int:product_id&gt;', views.detail, name='detail'),
  ]
  </code></pre>
  
  <p>The temaplte "detail.html" of "products" is:</p>
  
  <pre><code>&lt;img src="{{ static 'upvote.png' }}" alt="Upvote"&gt;
  </code></pre>
  
  <p>However, I am having the error: <strong>Could not parse the remainder: ' 'upvote.png'' from 'static 'upvote.png''</strong></p>
  
  <p>Many thanks</p>