title: Migrate Error: Django/Postrgres: DataError Numeric Precision 10000 must be between 1 and 1000
body: <p>When trying to migrate changes for the first time into my Postgresql DB, I encounter this error. </p>
  
  <p>I can successfully migrate and start my app when using the standard SQLite db that DJango comes with. However, when trying to connect to my Postgresql I've been having trouble. I have my Postgresql open with pgAdmin and the databases connected with no data in them. I also have deleted all entries in my django app in case an import error was causing the error. </p>
  
  <pre class="lang-py prettyprint-override"><code>$ docker-compose run web python manage.py migrate
  Starting src_db_1 ... done
  Operations to perform:
    Apply all migrations: admin, auth, blog, contenttypes, courses, products, sessions
  Running migrations:
    Applying products.0001_initial...Traceback (most recent call last):
    File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 83, in _execute
      return self.cursor.execute(sql)
  psycopg2.DataError: NUMERIC precision 10000 must be between 1 and 1000
  LINE 1: ...r(120) NOT NULL, "description" text NULL, "price" numeric(10...
                                                               ^
  
  The above exception was the direct cause of the following exception:
  
  Traceback (most recent call last):
    File "manage.py", line 15, in &lt;module&gt;
      execute_from_command_line(sys.argv)
    File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
      utility.execute()
    ... 
      raise dj_exc_value.with_traceback(traceback) from exc_value
    File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 83, in _execute
      return self.cursor.execute(sql)
  django.db.utils.DataError: NUMERIC precision 10000 must be between 1 and 1000
  LINE 1: ...r(120) NOT NULL, "description" text NULL, "price" numeric(10...
  </code></pre>
  
  <h1>This is my models.py where I created the price DecimalField.</h1>
  
  <pre class="lang-py prettyprint-override"><code>from django.db import models
  from django.urls import reverse
  
  class Product(models.Model):
      title       = models.CharField(max_length=120) # max_length = required
      description = models.TextField(blank=True, null=True)
      price       = models.DecimalField(decimal_places=2, max_digits=100,blank=True)
      summary     = models.TextField(blank=True, null=True)
      featured    = models.BooleanField(default=False) # null=True, default=True
  
      def get_absolute_url(self):
          return reverse("products:product-detail", kwargs={"id": self.id}) #f"/products/{self.id}/"
  </code></pre>
  
  <h1>This is my manage.py</h1>
  
  <pre class="lang-py prettyprint-override"><code>#!/usr/bin/env python
  import os
  import sys
  
  if __name__ == "__main__":
      os.environ.setdefault("DJANGO_SETTINGS_MODULE", "trydjango.settings")
      try:
          from django.core.management import execute_from_command_line
      except ImportError as exc:
          raise ImportError(
              "Couldn't import Django. Are you sure it's installed and "
              "available on your PYTHONPATH environment variable? Did you "
              "forget to activate a virtual environment?"
          ) from exc
      execute_from_command_line(sys.argv)
  </code></pre>
  
  <pre><code>                                 ^
  </code></pre>