title: How can I add displaying image in my home page
body: <p>Am creating a site where I want to post some information with image, in my admin page I can add image and it works fine. But when I come to the homepage it doesn't appear</p>
  
  <p>Am using django and python. I know, the way I have used to call the image in the home template is not right, please help me how would I bring the image in my home page??</p>
  
  <p>url</p>
  
  <pre><code>from django.urls import path
  from . import views
  from django.conf import settings
  from django.conf.urls.static import static
  
  
  app_name = "main"
  
  urlpatterns = [
                  path("", views.homepage,name="homepage"),
  
  ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
  </code></pre>
  
  <p>Home template</p>
  
  <pre><code>{% extends 'main/base.html' %}
  
  {% block content %}
  &lt;a class="waves-effect waves-light btn" href=""&gt;button&lt;/a&gt;
  &lt;div class="row"&gt;
     &lt;div class="col s12 m9" &gt;
      {% for Doc in documents %}
    &lt;div class="card"&gt;
      &lt;div class="card-image"&gt;
  
          &lt;p&gt;{{Doc.docs_name}}&lt;/p&gt;
          &lt;p&gt;{{Doc.police_station}}&lt;/p&gt;
          &lt;p&gt;{{Doc.docs_details}}&lt;/p&gt;
          &lt;img src = "{{Documents.docs_pic.url}}" width = "240"&gt;
  
      &lt;/div&gt;
    &lt;/div&gt;
   {% endfor %} 
  
  &lt;/div&gt; 
  
   &lt;/div&gt;
   {% endblock %}
  </code></pre>
  
  <p>views</p>
  
  <pre><code>from django.shortcuts import render
  from django.http import HttpResponse
  from . models import Documents
  from main.models import Documents
  
  
  # Create your views here.
  
  def homepage(request):
      return render(request=request,
                    template_name="main/home.html",
                    context={"documents":Documents.objects.all}
  
      )
  </code></pre>
  
  <p>Model</p>
  
  <pre><code>from django.db import models
  
  # Create your models here.
  
  class Documents(models.Model):
      docs_name = models.CharField(max_length=200)
      police_station = models.CharField(max_length=200)
      docs_details = models.TextField()
      docs_pic = models.ImageField(upload_to="profileimages",blank=False)
  
      def __str__(self):
          return self.docs_name
  </code></pre>