title: Django image not getting uploaded
body: <p>We are making our school site on Django, we made a gallery app but i think the images are not getting uploaded to designated folder, rather they are not even getting uploaded i think so .
  Code : -</p>
  
  <pre><code># views.py
  def upload(request, template_name="gallery/form.html"):
     form = GalleryForm(request.POST or None, request.FILES or None)
     if form.is_valid():
       form.save()
       messages.success(request, "image has been uploaded")
       return redirect('gallery.views.index')
  
     return render(request, template_name,{'form':form})
  
  from django.db import models
  
  # models.py
  class GalleryPhoto(models.Model):
     image = models.ImageField(upload_to='pic_folder/')
     description = models.CharField(max_length=50)
  
     def __unicode__(self):
        return self.image.url
  </code></pre>
  
  <p>The rest of the code can be seen in this <a href="https://github.com/Anurag-Ans/JHTS/tree/master/gallery" rel="nofollow">repo</a> <br>
  Note : the the gallery template contains some conflicts but that is not the actual problem.</p>