title: Django static media not showing picture
body: <p>after searching for a solution for hours which did not resolve my problem,I am posting this. The image from my media root is not showing up on my html. In chrome's console i get a <code>404 file not found</code>.Even though the image is there. I am using Python 3 ,Django 1.10 in Pycharm.</p>
  
  <p>This is the <strong>model</strong> which is where i upload images to:</p>
  
  <pre><code>from django.db import models
  
  class Post(models.Model):
      username = "anonymous"
      post = models.ImageField(upload_to='anon')
      creation_date = models.DateTimeField(auto_now_add=True)
  
      def __str__(self):
          return Post.username
  </code></pre>
  
  <p><strong>views.py</strong>:</p>
  
  <pre><code>from django.shortcuts import render,get_object_or_404
  from .models import Post
  
  def home(request):
      return render(request,"base.html",{})
  
  def post_detail(request,id=None):
      instance = get_object_or_404(Post,id=id)
      context = {
          "post": instance.post,
          "instance": instance
      }
      return render(request,"post_detail.html",context)
  </code></pre>
  
  <p><strong>post_detail.html</strong>(here the image isnt showing):</p>
  
  <pre><code>&lt;body&gt;
      &lt;img src = "{{ instance.post.url}}" height="520" width="500"&gt;&lt;br&gt;
      {{ instance.creation_date }}&lt;br&gt;
      {{ instance.username }}&lt;br&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Parts of <strong>setting.py</strong>:</p>
  
  <pre><code>INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'Post',
  ]
  
  MIDDLEWARE = [
      'django.middleware.security.SecurityMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
  ]
  
  ROOT_URLCONF = 'Post.urls'
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': [os.path.join(BASE_DIR, 'templates')]
          ,
          'APP_DIRS': True,
          'OPTIONS': {
              'debug': DEBUG,
              'context_processors': [
                  'django.template.context_processors.debug',
                  'django.template.context_processors.request',
                  'django.contrib.auth.context_processors.auth',
                  'django.contrib.messages.context_processors.messages',
  
              ],
          },
      },
  ]
  
  WSGI_APPLICATION = 'Post.wsgi.application'
  
  
  # Database
  # https://docs.djangoproject.com/en/1.10/ref/settings/#databases
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
      }
  }
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  
  # Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/1.10/howto/static-files/
  
  STATIC_URL = '/static/'
  STATIC_ROOT = os.path.join(BASE_DIR, 'static')
  
  MEDIA_URL = '/media/'
  MEDIA_ROOT = os.path.join(BASE_DIR, 'Post/media/')
  </code></pre>
  
  <p>What my directories look like:</p>
  
  <p><a href="https://i.stack.imgur.com/lWxKe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lWxKe.png" alt="enter image description here"></a></p>