1

我尝试将 python 从 3.4 更新到 3.6,将我的操作系统从 centos 6 更改为 7,将 django 从 2.0 更改为 2.2。我试着跑步

python3 manage.py 检查,它工作正常

系统检查未发现任何问题(0 静音)。然后尝试运行服务器并得到以下异常

python3 manage.py runserver
Performing system checks...

System check identified no issues (0 silenced).
Exception in thread Thread-1:
Traceback (most recent call last):



File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/saas/venv/lib/python3.6/site-packages/django/utils/autoreload.py", line 54, in wrapper
    fn(*args, **kwargs)
  File "/opt/saas/venv/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 120, in inner_run
    self.check_migrations()
  File "/opt/saas/venv/lib/python3.6/site-packages/django/core/management/base.py", line 453, in check_migrations
    executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
  File "/opt/saas/venv/lib/python3.6/site-packages/django/db/migrations/executor.py", line 18, in __init__
    self.loader = MigrationLoader(self.connection)
  File "/opt/saas/venv/lib/python3.6/site-packages/django/db/migrations/loader.py", line 49, in __init__
    self.build_graph()
  File "/opt/saas/venv/lib/python3.6/site-packages/django/db/migrations/loader.py", line 206, in build_graph
    self.load_disk()
  File "/opt/saas/venv/lib/python3.6/site-packages/django/db/migrations/loader.py", line 123, in load_disk
    app_config.label,
    TypeError: object() takes no parameters

请帮我解决这个问题

4

0 回答 0