title: Django images not uploading
body: <p>I am working on a blog project where I am able to upload profile picture for each logged in user. Those uploaded profile photos are saving my django files. But for uploading a blog with images its not loading or saving, keeps warning &quot;This field is required&quot;.</p>
  <p><strong>Views.py</strong></p>
  <pre><code>class CreateBlog(LoginRequiredMixin, CreateView):
      model = Blog
      template_name = 'App_Blog/create_blog.html'
      fields = ('blog_title', 'blog_content', 'blog_image',)
  
      def form_valid(self, form):
          blog_obj = form.save(commit=False)
          blog_obj.author = self.request.user
          title = blog_obj.blog_title
          blog_obj.slug = title.replace(&quot; &quot;, &quot;-&quot;) + &quot;-&quot; + str(uuid.uuid4())
          blog_obj.save()
          return HttpResponseRedirect(reverse('index'))
  </code></pre>
  <p><strong>Models.py</strong></p>
  <pre><code>class Blog(models.Model):
      author = models.ForeignKey(
          User, on_delete=models.CASCADE, related_name='post_author')
      blog_title = models.CharField(max_length=264, verbose_name=&quot;Put a Title&quot;)
      slug = models.SlugField(max_length=264, unique=True)
      blog_content = models.TextField(verbose_name=&quot;What is on your mind?&quot;)
      blog_image = models.ImageField(
          upload_to='blog_images', verbose_name=&quot;Image&quot;)
      publish_date = models.DateTimeField(auto_now_add=True)
      update_date = models.DateTimeField(auto_now=True)
  
      def __str__(self):
          return self.blog_title
  </code></pre>
  <p><strong>Settings.py</strong></p>
  <pre><code>BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  MEDIA_DIR = os.path.join(BASE_DIR, 'media')
  
  # MEDIA
  MEDIA_ROOT = MEDIA_DIR
  MEDIA_URL = '/media/'
  </code></pre>
  <p><strong>Create_blog.html</strong></p>
  <pre><code>{% extends 'base.html' %}
  {% load crispy_forms_tags %}
  
  {% block title_block %}
  Write a Blog
  {% endblock title_block %}
  
  
  {% block body_block %}
  &lt;h2&gt;Start Writing:&lt;/h2&gt;
  &lt;form method=&quot;POST&quot;&gt;
      {{ form | crispy }}
      {% csrf_token %}
      &lt;br&gt;
      &lt;button type=&quot;submit&quot; class=&quot;btn btn-success btn-sm&quot;&gt;Publish&lt;/button&gt;
  &lt;/form&gt;
  {% endblock body_block %}
  </code></pre>
  <p><a href="https://i.stack.imgur.com/b3Qam.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b3Qam.png" alt="enter image description here" /></a></p>