title: How do I configure Django's auth user model to have a UUID (Postgres DB)
body: <p>I'm using Python 3.9 and Django 3.2.  Here is my folder structure</p>
  <pre><code>+ cbapp
      - settings.py
      + models
          - __init__.py
          - custom_user.py
  - manage.py
  </code></pre>
  <p>Here's what my customer_user.py file looks like</p>
  <pre><code>$ cat models/custom_user.py
  import uuid
  
  from django.contrib.auth.models import AbstractUser
  from django.db import models
  
  
  class CustomUser(AbstractUser):
      pass
      uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
  </code></pre>
  <p>Additionally, I have configured this in my settings.py file</p>
  <pre><code>AUTH_USER_MODEL = 'models.CustomUser'
  </code></pre>
  <p>However, when I run &quot;python manage.py makemigrations&quot;, I get this error</p>
  <pre><code>django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'models.CustomUser' that has not been installed
  </code></pre>
  <p>I have no idea what this means.  I have this in my settings.py file</p>
  <pre><code>INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'cbapp',
  ]
  ...
  AUTH_USER_MODEL = 'models.CustomUser'
  </code></pre>