微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

django 配置和 conda 错误信息

如何解决django 配置和 conda 错误信息

这个错误一直出现在我的 django 配置中,并结束了服务器。在过去的一年里,我在 django 和 conda 中使用了相同的配置,从来没有出现过问题,并且(据我所知)我没有做任何改变。有谁知道这里发生了什么?

这个错误一直出现在我的 django 配置中,并结束了服务器。在过去的一年里,我在 django 和 conda 中使用了相同的配置,从来没有出现过问题,并且(据我所知)我没有做任何改变。有谁知道这里发生了什么?

This is the error message I receive

Traceback (most recent call last):
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\core\management\base.py",line 328,in run_from_argv
    self.execute(*args,**cmd_options)
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\core\management\commands\runserver.py",line 60,in execute
    super().execute(*args,**options)
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\core\management\base.py",line 369,in execute
    output = self.handle(*args,**options)
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\core\management\commands\runserver.py",line 95,in handle
    self.run(**options)
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\core\management\commands\runserver.py",line 102,in run
    autoreload.run_with_reloader(self.inner_run,**options)
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\utils\autoreload.py",line 599,in run_with_reloader
    start_django(reloader,main_func,*args,**kwargs)
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\utils\autoreload.py",line 584,in start_django
    reloader.run(django_main_thread)
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\utils\autoreload.py",line 299,in run
    self.run_loop()
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\utils\autoreload.py",line 305,in run_loop
    next(ticker)
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\utils\autoreload.py",line 353,in tick
    self.notify_file_changed(filepath)
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\utils\autoreload.py",in notify_file_changed
    trigger_reload(path)
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\utils\autoreload.py",line 223,in trigger_reload
    sys.exit(3)
SystemExit: 3

During handling of the above exception,another exception occurred:

Traceback (most recent call last):
  File "manage.py",line 22,in <module>
    main()
  File "manage.py",line 18,in main
    execute_from_command_line(sys.argv)
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\core\management\__init__.py",line 401,in execute_from_command_line
    utility.execute()
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\core\management\__init__.py",line 395,in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\core\management\base.py",line 341,in run_from_argv
    connections.close_all()
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\db\utils.py",line 230,in close_all
    connection.close()
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\utils\asyncio.py",line 26,in inner
    return func(*args,**kwargs)
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\db\backends\sqlite3\base.py",line 261,in close
    if not self.is_in_memory_db():
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\db\backends\sqlite3\base.py",line 380,in is_in_memory_db
    return self.creation.is_in_memory_db(self.settings_dict['NAME'])
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\db\backends\sqlite3\creation.py",line 12,in is_in_memory_db
    return database_name == ':memory:' or 'mode=memory' in database_name
TypeError: argument of type 'WindowsPath' is not iterable
Traceback (most recent call last):
  File "C:\Users\marcd\.conda\envs\mydjangoenv\lib\site-packages\django\core\management\base.py",line 602,in run_with_reloader
    sys.exit(exit_code)
SystemExit: 1

During handling of the above exception,in is_in_memory_db
    return database_name == ':memory:' or 'mode=memory' in database_name
TypeError: argument of type 'WindowsPath' is not iterable

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。