title: Django: MEDIA_URL not set in template
body: <p>I've read a lot of question and article but can't find what I'm missing.</p>
  
  <p>Here is my conf :</p>
  
  <p><strong>settings.py</strong></p>
  
  <pre><code>MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
  MEDIA_URL = '/media/'
  
  STATIC_URL = '/static/'
  
  STATICFILES_DIRS = (
      os.path.join(os.path.dirname(__file__),'static').replace('\\', '/'),
  )
  </code></pre>
  
  <p><strong>urls.py</strong></p>
  
  <pre><code>urlpatterns = [
      url(r'^$', include('home.urls')),
      url(r'^admin/', include(admin.site.urls)),
      url(r'^artist/', include('artists.urls')),
      url(r'photo/', include('photo.urls'))
  ]
  urlpatterns += staticfiles_urlpatterns()
  urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  </code></pre>
  
  <p>Whatever, my media are served, cause when I go to <a href="http://localhost:8000/media/path/to/image.jpg" rel="noreferrer">http://localhost:8000/media/path/to/image.jpg</a>, i have my image.</p>
  
  <p>But when in template I go like this :</p>
  
  <pre><code>&lt;img class="avatar secondary-content" src="{{MEDIA_URL}}{{artist.artist_image}}"&gt;
  </code></pre>
  
  <p>I only  have the image path. When I change in html <code>{{MEDIA_URL}}</code> by '/media/', it works.</p>
  
  <p>So it seems my <code>MEDIA_URL</code> is not set in template and as far as I've searched, I can't see what I missed.</p>
  
  <p>I'm on django 1.8.2. If you need any informations, just ask me.</p>