title: Images not showing on html template Django python
body: <p>I have a template which has a source to an image, every time I run my html file the image does not display,I have tried some examples but to no success, I have set the url.py, settings.py and html file. Am new to Django.</p>
  
  <p>URL.py</p>
  
  <pre><code>from django.conf.urls.defaults import *
  from rulebase.rulesapp.views import myview
  import settings
  
  # Uncomment the next two lines to enable the admin:
  from django.contrib import admin
  admin.autodiscover()
  
  urlpatterns = patterns('',
      # Example:
      # (r'^rulebase/', include('rulebase.foo.urls')),
  
      # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
      # to INSTALLED_APPS to enable admin documentation:
      # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
  
      # Uncomment the next line to enable the admin:
      (r'^admin/', include(admin.site.urls)),
      (r'^myview/$', myview),
      (r'^media/(?P&lt;path&gt;.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT}), 
  )
  </code></pre>
  
  <p>Settings file</p>
  
  <pre><code> MEDIA_ROOT = '/home/user/dev/Django/rulebase/media/'
  
      MEDIA_URL = 'http://127.0.0.1:8080/media/'
  
      ADMIN_MEDIA_PREFIX = '/media/'
  </code></pre>
  
  <p>HTML
  <code>&lt;img src="{{ MEDIA_URL }}logo-on-trans.png" width="448" height="255" /&gt;</code></p>