title: How to stop django to store images path in sqlite3 database
body: <p>Following code work fine to store thumbnails images in  /media/ directory. i want to store all images in following directory but django also save images path in database. Please let me know, how i can stop django to save their path and address in database ?</p>
  
  <p><strong>model.py : Code</strong></p>
  
  <pre><code>from django.db import models
      class Document(models.Model):
          thumbnail = models.ImageField()
  </code></pre>
  
  <p><strong>views.py : Code</strong></p>
  
  <pre><code>from .models import Document
  from .forms import DocumentForm
  
      if (request.FILES['thumbnail']):
          newdoc = Document(thumbnail = request.FILES['thumbnail'])
          newdoc.save()
  </code></pre>
  
  <p><strong>forms.py : Code</strong></p>
  
  <pre><code>from django import forms
  
      class DocumentForm(forms.Form):
          thumbnail = forms.ImageField(
          label='Select a file',
          help_text='max. 42 megabytes'
          )
  </code></pre>
  
  <p><strong>template.html : Code</strong></p>
  
  <pre><code>&lt;form action="" method="post" id="imgUpload" enctype="multipart/form-data"&gt;
      &lt;p&gt;{{ form.non_field_errors }}&lt;/p&gt;
      &lt;p&gt;{{ form.thumbnail.label_tag }} {{ form.thumbnail.help_text }}&lt;/p&gt;
      &lt;p&gt;
          {{ form.thumbnail.errors }}
          {{ form.thumbnail }}
          &lt;button type="submit" id="thumbUpload" class="btn btn-success"&gt;&lt;i class="glyphicon glyphicon-picture"&gt;&lt;/i&gt;&amp;nbsp;&amp;nbsp;Upload Thumbnails&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>