title: Why qlite3.OperationalError: no such column: loginsignup_customusers.password While creating CustomUser and CustomUserManager?
body: <p>I have just started learning Django and stuck my self in very strange condition.
  I have created my own CustomUser instead of available in <code>django.contrib.auth.models</code> for authentication purpose.</p>
  <p>I am getting some error or problems all together ,while running the program,i am trying to post all of them bellow.
  <em>I know all of them are occurred due to some silly mistake which i am unable to figure out on my own</em></p>
  <p><em><strong>1)</strong></em> When ever i am trying to run python <code>manage.py make migrations</code> i am getting error as bellow:-</p>
  <pre><code>You are trying to add a non-nullable field 'password' to customusers without a default; we can't do that (the database needs something to populate existing rows).
  Please select a fix:
   1) Provide a one-off default now (will be set on all existing rows with a null value for this column)
   2) Quit, and let me add a default in models.py
  Select an option:
  </code></pre>
  <p><strong>2)</strong> When using <code>python manage.py runserver</code> is worked fine and run a emulated server on my local computer.
  <em>Now when i am trying to access</em> <code>admin/</code> <em>it shows me the following error</em>**:-**</p>
  <pre><code>Internal Server Error: /admin/
  Traceback (most recent call last):
    File &quot;C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\backends\utils.py&quot;, line 84, in _execute
      return self.cursor.execute(sql, params)
    File &quot;C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\backends\sqlite3\base.py&quot;, line 423, in execute
      return Database.Cursor.execute(self, query, params)
  sqlite3.OperationalError: no such column: loginsignup_customusers.password
  </code></pre>
  <p><strong>Second after filling the signup form :-</strong></p>
  <pre><code>Internal Server Error: /signup/
  Traceback (most recent call last):
    File &quot;C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\handlers\exception.py&quot;, line 47, in inner
      response = get_response(request)
    File &quot;C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\handlers\base.py&quot;, line 181, in _get_response
      response = wrapped_callback(request, *callback_args, **callback_kwargs)
    File &quot;C:\Users\Admin\PycharmProjects\ecommerceproject\loginsignup\views.py&quot;, line 11, in signup_view
      fm.save()
    File &quot;C:\Users\Admin\PycharmProjects\ecommerceproject\loginsignup\forms.py&quot;, line 42, in save
      user = CustomUserManager.objects.create_user(
  AttributeError: type object 'CustomUserManager' has no attribute 'objects'
  [11/Jun/2021 11:35:58] &quot;POST /signup/ HTTP/1.1&quot; 500 67683
  </code></pre>
  <p><strong>Bellow i am posting CustomUser and CustomUserManager class :-</strong></p>
  <p><strong>CustomUser:-</strong></p>
  <pre><code>class CustomUsers(AbstractBaseUser, PermissionsMixin):
      username = models.CharField(max_length=40, unique=True)
      email = models.EmailField()
      password1 = models.CharField(max_length=10, null=False)
      objects = CustomUserManager()
      USERNAME_FIELD = 'username'
  </code></pre>
  <p><strong>CustomUserManager:-</strong></p>
  <pre><code>class CustomUserManager(BaseUserManager):
  
      def create_user(self, username, email, password, **other_fields):
          email = email.normalize_email(email)
          user = self.model(email=email, username=username, **other_fields)
          user.set_password(password)
          user.save()
          return user
  
      def create_superuser(self, username, email, password, **other_fields):
          other_fields.setdefault('is_staff', True)
          other_fields.setdefault('is_superuser', True)
          other_fields.setdefault('is_active', True)
  </code></pre>