ValueError: Dependency on app with no migrations: users解决方案

python中启动django项目时报错:  

Exception ignored in thread started by: <function check_errors.<locals>.wrapper at 0x000002360F0F8C10>
Traceback (most recent call last):
  File "D:\myenv\FinancialBackend\lib\site-packages\django\utils\autoreload.py", line 228, in wrapper
    fn(*args, **kwargs)
  File "D:\myenv\FinancialBackend\lib\site-packages\django\core\management\commands\runserver.py", line 127, in inner_run
    self.check_migrations()
  File "D:\myenv\FinancialBackend\lib\site-packages\django\core\management\base.py", line 422, in check_migrations
    executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
  File "D:\myenv\FinancialBackend\lib\site-packages\django\db\migrations\executor.py", line 20, in __init__
    self.loader = MigrationLoader(self.connection)
  File "D:\myenv\FinancialBackend\lib\site-packages\django\db\migrations\loader.py", line 52, in __init__
    self.build_graph()
  File "D:\myenv\FinancialBackend\lib\site-packages\django\db\migrations\loader.py", line 224, in build_graph
    self.add_external_dependencies(key, migration)
  File "D:\myenv\FinancialBackend\lib\site-packages\django\db\migrations\loader.py", line 189, in add_external_dependencies
    parent = self.check_key(parent, key[0])
  File "D:\myenv\FinancialBackend\lib\site-packages\django\db\migrations\loader.py", line 170, in check_key
    raise ValueError("Dependency on app with no migrations: %s" % key[0])
ValueError: Dependency on app with no migrations: users

原因没有迁移表造成的:
 

python manage.py makemigrations
python manage.py migrate

在python中再次启动Django程序,显示成功,信息如下:

System check identified no issues (0 silenced).
October 28, 2021 - 15:57:58
Django version 1.11.17, using settings 'FinancialBackend.settings.dev'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.