title: How to restrict user to select date between range of years in django?
body: <p><strong>models.py</strong></p>
  
  <pre><code>class Completion(models.Model):
      start_date = models.DateField()
      end_date = models.DateField()
      batch = models.ForeignKey(Batch)
      topic = models.ForeignKey(Topic)
  </code></pre>
  
  <p>In above code <code>DateField()</code> generates a date selecting widget in admin site where you can select proper date or enter it manually in a textbox. The problems are:</p>
  
  <ol>
  <li><p>How do I restrict the user to select a Date that comes under year 2000 to 2100.</p></li>
  <li><p>when user manually types a date in the text-box, it accepts any date that's in format yy-mm-dd. I need validation so non existing date should not be entered.</p></li>
  </ol>