title: django.db.utils.OperationalError: no such table
body: <p>I'm upgrading a Django project from 1.8 to 1.9,
  I deleted the database file and all cache files, then I tried to run </p>
  
  <pre><code>python manage.py migrate
  </code></pre>
  
  <p>or </p>
  
  <pre><code>python manage.py migrate --run-syncdb
  </code></pre>
  
  <p>but always raise this error <strong>django.db.utils.OperationalError: no such table:</strong></p>
  
  <p>here is the full traceback</p>
  
  <pre><code>Traceback (most recent call last):
  
  
  File "manage.py", line 25, in &lt;module&gt;
      execute_from_command_line(sys.argv)
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 350, in execute_from_command_line
      utility.execute()
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 342, in execute
      self.fetch_command(subcommand).run_from_argv(self.argv)
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv
      self.execute(*args, **cmd_options)
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/core/management/base.py", line 398, in execute
      self.check()
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/core/management/base.py", line 426, in check
      include_deployment_checks=include_deployment_checks,
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/core/checks/registry.py", line 75, in run_checks
      new_errors = check(app_configs=app_configs)
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/core/checks/urls.py", line 10, in check_url_config
      return check_resolver(resolver)
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/core/checks/urls.py", line 19, in check_resolver
      for pattern in resolver.url_patterns:
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/utils/functional.py", line 33, in __get__
      res = instance.__dict__[self.name] = self.func(instance)
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 417, in url_patterns
      patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/utils/functional.py", line 33, in __get__
      res = instance.__dict__[self.name] = self.func(instance)
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 410, in urlconf_module
      return import_module(self.urlconf_name)
    File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
      __import__(name)
    File "/home/basha/UpgradeMloss/mloss/urls.py", line 30, in &lt;module&gt;
      (r'^community/', include('community.urls')),
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 52, in include
      urlconf_module = import_module(urlconf_module)
    File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
      __import__(name)
    File "/home/basha/UpgradeMloss/mloss/community/urls.py", line 32, in &lt;module&gt;
      'extra_context' : get_latest_news()
    File "/home/basha/UpgradeMloss/mloss/community/summary.py", line 68, in get_latest_news
      latest_posts = get_latest_posts()
    File "/home/basha/UpgradeMloss/mloss/community/summary.py", line 32, in get_latest_posts
      for forum in all_forums:
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/db/models/query.py", line 258, in __iter__
      self._fetch_all()
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/db/models/query.py", line 1074, in _fetch_all
      self._result_cache = list(self.iterator())
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/db/models/query.py", line 52, in __iter__
      results = compiler.execute_sql()
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 852, in execute_sql
      cursor.execute(sql, params)
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 79, in execute
      return super(CursorDebugWrapper, self).execute(sql, params)
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
      return self.cursor.execute(sql, params)
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/db/utils.py", line 95, in __exit__
      six.reraise(dj_exc_type, dj_exc_value, traceback)
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
      return self.cursor.execute(sql, params)
    File "/home/basha/UpgradeMloss/venv1.9/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 323, in execute
      return Database.Cursor.execute(self, query, params)
  django.db.utils.OperationalError: no such table: community_forum
  </code></pre>
  
  <p>it works fine on <strong>django1.8</strong> without any error! 
  Are there any edits or updates should I make in <strong>Settings.py</strong>?</p>