在服务器搭建django,装完后服务运行不起来,报了个奇怪的错误,不知道怎么解决

root@iZbp14g9fehswjk6l7dh49Z:/user/PZDjango# python manage.py runserver Watching for file changes with StatReloader Performing system checks...

System check identified no issues (0 silenced). Exception in thread django-main-thread: Traceback (most recent call last): File "/user/local/python3/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/user/local/python3/lib/python3.8/threading.py", line 870, in run self._target(self._args, self._kwargs) File "/user/local/python3/lib/python3.8/site-packages/django/utils/autoreload.py", line 53, in wrapper fn(*args, kwargs) File "/user/local/python3/lib/python3.8/site-packages/django/core/management/commands/runserver.py", line 121, in inner_run self.check_migrations() File "/user/local/python3/lib/python3.8/site-packages/django/core/management/base.py", line 459, in check_migrations executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS]) File "/user/local/python3/lib/python3.8/site-packages/django/db/migrations/executor.py", line 18, in init self.loader = MigrationLoader(self.connection) File "/user/local/python3/lib/python3.8/site-packages/django/db/migrations/loader.py", line 53, in init self.build_graph() File "/user/local/python3/lib/python3.8/site-packages/django/db/migrations/loader.py", line 216, in build_graph self.applied_migrations = recorder.applied_migrations() File "/user/local/python3/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 77, in applied_migrations if self.has_table(): File "/user/local/python3/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 55, in has_table with self.connection.cursor() as cursor: File "/user/local/python3/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner return func(args, kwargs) File "/user/local/python3/lib/python3.8/site-packages/django/db/backends/base/base.py", line 259, in cursor return self._cursor() File "/user/local/python3/lib/python3.8/site-packages/django/db/backends/base/base.py", line 235, in _cursor self.ensure_connection() File "/user/local/python3/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner return func(*args, kwargs) File "/user/local/python3/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection self.connect() File "/user/local/python3/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner return func(*args, kwargs) File "/user/local/python3/lib/python3.8/site-packages/django/db/backends/base/base.py", line 200, in connect self.connection = self.get_new_connection(conn_params) File "/user/local/python3/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner return func(*args, kwargs) File "/user/local/python3/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py", line 215, in get_new_connection create_deterministic_function('django_date_extract', 2, _sqlite_datetime_extract) TypeError: function takes at most 3 arguments (4 given)

评论 3