title: "django.db.utils.OperationalError: no such table" when adding in new app
body: <p>I recently added the <code>mycase</code> app to my larger django project but since then I have been getting all kinds of database errors. If any more information would be helpful just reply with a comment, I don't know exactly what would be helpful in this case. Thanks!
  Traceback:</p>
  <pre><code>File &quot;manage.py&quot;, line 22, in &lt;module&gt;
      main()
    File &quot;manage.py&quot;, line 18, in main
      execute_from_command_line(sys.argv)
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/core/management/__init__.py&quot;, line 401, in execute_from_command_line
      utility.execute()
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/core/management/__init__.py&quot;, line 395, in execute
      self.fetch_command(subcommand).run_from_argv(self.argv)
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/core/management/base.py&quot;, line 330, in run_from_argv
      self.execute(*args, **cmd_options)
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/core/management/base.py&quot;, line 368, in execute
      self.check()
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/core/management/base.py&quot;, line 392, in check
      all_issues = checks.run_checks(
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/core/checks/registry.py&quot;, line 70, in run_checks
      new_errors = check(app_configs=app_configs, databases=databases)
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/core/checks/urls.py&quot;, line 40, in check_url_namespaces_unique
      all_namespaces = _load_all_namespaces(resolver)
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/core/checks/urls.py&quot;, line 57, in _load_all_namespaces
      url_patterns = getattr(resolver, 'url_patterns', [])
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/utils/functional.py&quot;, line 48, in __get__
      res = instance.__dict__[self.name] = self.func(instance)
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/urls/resolvers.py&quot;, line 589, in url_patterns
      patterns = getattr(self.urlconf_module, &quot;urlpatterns&quot;, self.urlconf_module)
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/utils/functional.py&quot;, line 48, in __get__
      res = instance.__dict__[self.name] = self.func(instance)
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/urls/resolvers.py&quot;, line 582, in urlconf_module
      return import_module(self.urlconf_name)
    File &quot;/opt/anaconda3/lib/python3.8/importlib/__init__.py&quot;, line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1014, in _gcd_import
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 991, in _find_and_load
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 975, in _find_and_load_unlocked
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 671, in _load_unlocked
    File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 783, in exec_module
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed
    File &quot;/Users/andrew/Desktop/Projects/purplerobotics/purplerobotics/urls.py&quot;, line 23, in &lt;module&gt;
      path('case/', include('mycase.urls'))
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/urls/conf.py&quot;, line 34, in include
      urlconf_module = import_module(urlconf_module)
    File &quot;/opt/anaconda3/lib/python3.8/importlib/__init__.py&quot;, line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1014, in _gcd_import
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 991, in _find_and_load
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 975, in _find_and_load_unlocked
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 671, in _load_unlocked
    File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 783, in exec_module
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed
    File &quot;/Users/andrew/Desktop/Projects/purplerobotics/mycase/urls.py&quot;, line 2, in &lt;module&gt;
      from . import views
    File &quot;/Users/andrew/Desktop/Projects/purplerobotics/mycase/views.py&quot;, line 7, in &lt;module&gt;
      class CaseHome(ListView):
    File &quot;/Users/andrew/Desktop/Projects/purplerobotics/mycase/views.py&quot;, line 10, in CaseHome
      total_price = CaseItem.objects.all().aggregate(total=Sum(F('Item_Price')*F('Item_Quantity')))['total']
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/db/models/query.py&quot;, line 398, in aggregate
      return query.get_aggregation(self.db, kwargs)
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/db/models/sql/query.py&quot;, line 500, in get_aggregation
      result = compiler.execute_sql(SINGLE)
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/db/models/sql/compiler.py&quot;, line 1156, in execute_sql
      cursor.execute(sql, params)
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/db/backends/utils.py&quot;, line 98, in execute
      return super().execute(sql, params)
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/db/backends/utils.py&quot;, line 66, in execute
      return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/db/backends/utils.py&quot;, line 75, in _execute_with_wrappers
      return executor(sql, params, many, context)
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/db/backends/utils.py&quot;, line 84, in _execute
      return self.cursor.execute(sql, params)
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/db/utils.py&quot;, line 90, in __exit__
      raise dj_exc_value.with_traceback(traceback) from exc_value
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/db/backends/utils.py&quot;, line 84, in _execute
      return self.cursor.execute(sql, params)
    File &quot;/opt/anaconda3/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py&quot;, line 413, in execute
      return Database.Cursor.execute(self, query, params)
  django.db.utils.OperationalError: no such table: mycase_caseitem
  </code></pre>
  <p>Project Settings File:</p>
  <pre><code>
  from pathlib import Path
  
  DEBUG = True
  
  ALLOWED_HOSTS = []
  
  INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'theblog',
      'dashboard',
      'mycase'
  ]
  
  MIDDLEWARE = [
      'django.middleware.security.SecurityMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
  ]
  
  ROOT_URLCONF = 'purplerobotics.urls'
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': [],
          'APP_DIRS': True,
          'OPTIONS': {
              'context_processors': [
                  'django.template.context_processors.debug',
                  'django.template.context_processors.request',
                  'django.contrib.auth.context_processors.auth',
                  'django.contrib.messages.context_processors.messages',
              ],
          },
      },
  ]
  
  WSGI_APPLICATION = 'purplerobotics.wsgi.application'
  
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': BASE_DIR / 'db.sqlite3',
      }
  }
  
  
  
  AUTH_PASSWORD_VALIDATORS = [
      {
          'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
      },
      {
          'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
      },
      {
          'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
      },
      {
          'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
      },
  ]
  
  
  LANGUAGE_CODE = 'en-us'
  
  TIME_ZONE = 'UTC'
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  
  STATIC_URL = '/static/'
  </code></pre>
  <p>mycase models.py file</p>
  <pre><code>from django.db import models
  from django.urls import reverse
  # Create your models here.
  
  class CaseItem(models.Model):
      Item_Title = models.CharField(max_length=200)
      Item_Price = models.DecimalField(default=0, max_digits=10, decimal_places=2)
      Item_Quantity = models.DecimalField(default=0, max_digits=10, decimal_places=2)
  
      def __str__(self):
          return self.Item_Title + ' | ' + str(self.Item_Quantity) + ' * $' + str(self.Item_Price)
  
      def get_absolute_url(self):
          return reverse('home')
  </code></pre>
  <p>If anything else would be helpful I would be happy to get it.</p>