我是 django&co 世界的新手......最近几天它正在运行 dbshell,但我真的不知道我碰到了什么,因为它正在让它崩溃......我会很高兴有任何线索。附上错误。我正在尝试用 django 制作一个 rest API,由 djongo 连接的 mongodb。
(DjangoProject) C:\Users\Skootik\alchemyml_services>python manage.py dbshell
Traceback (most recent call last):
File "manage.py", line 15, in <module>
execute_from_command_line(sys.argv)
File "C:\Users\Skootik\Anaconda3\envs\DjangoProject\lib\site-packages\django\core\management\__init__.py", line 381, in execute_from_command_line
utility.execute()
File "C:\Users\Skootik\Anaconda3\envs\DjangoProject\lib\site-packages\django\core\management\__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\Skootik\Anaconda3\envs\DjangoProject\lib\site-packages\django\core\management\base.py", line 316, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\Skootik\Anaconda3\envs\DjangoProject\lib\site-packages\django\core\management\base.py", line 353, in execute
output = self.handle(*args, **options)
File "C:\Users\Skootik\Anaconda3\envs\DjangoProject\lib\site-packages\django\core\management\commands\dbshell.py", line 22, in handle
connection.client.runshell()
File "C:\Users\Skootik\Anaconda3\envs\DjangoProject\lib\site-packages\django\db\backends\base\client.py", line 12, in runshell
raise NotImplementedError('subclasses of BaseDatabaseClient must provide a runshell() method')
NotImplementedError: subclasses of BaseDatabaseClient must provide a runshell() method