Python Django нет такой таблицы: app_db

     File "C:\python\lib\site-packages\django\db\backends\utils.py", line 68, in execute
        return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
      File "C:\python\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
        return executor(sql, params, many, context)
      File "C:\python\lib\site-packages\django\db\backends\utils.py", line 86, in _execute
        return self.cursor.execute(sql, params)
      File "C:\python\lib\site-packages\django\db\utils.py", line 90, in __exit__
        raise dj_exc_value.with_traceback(traceback) from exc_value
      File "C:\python\lib\site-packages\django\db\backends\utils.py", line 86, in _execute
        return self.cursor.execute(sql, params)
      File "C:\python\lib\site-packages\django\db\backends\sqlite3\base.py", line 396, in execute
        return Database.Cursor.execute(self, query, params)
  File "C:\python\lib\site-packages\django\db\utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "C:\python\lib\site-packages\django\db\backends\utils.py", line 86, in _execute
    return self.cursor.execute(sql, params)
  File "C:\python\lib\site-packages\django\db\backends\sqlite3\base.py", line 396, in execute
    return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: no such table: app_db

Я попробовал python manage.py migrate runserver makemigrations и migrate bu it diddnt work i just delete sqlite and this happened

Вернуться на верх