猿问

小白,请教各位大佬!django 启动报错 同一个项目 放到A电脑没问题 B电脑就报错 且DEBUG找不到这个问题 万分感谢

Traceback(mostrecentcalllast):File"D:/py/1S1K/spider_one_dow/manage.py",line21,in
main()
File"D:/py/1S1K/spider_one_dow/manage.py",line17,inmain
execute_from_command_line(sys.argv)
File"D:anacondalibsite-packagesdjangocoremanagement__init__.py",line381,inexecute_from_command_line
utility.execute()
File"D:anacondalibsite-packagesdjangocoremanagement__init__.py",line375,inexecute
self.fetch_command(subcommand).run_from_argv(self.argv)
File"D:anacondalibsite-packagesdjangocoremanagementbase.py",line323,inrun_from_argv
self.execute(*args,**cmd_options)
File"D:anacondalibsite-packagesdjangocoremanagementcommandsrunserver.py",line60,inexecute
super().execute(*args,**options)
File"D:anacondalibsite-packagesdjangocoremanagementbase.py",line364,inexecute
output=self.handle(*args,**options)
File"D:anacondalibsite-packagesdjangocoremanagementcommandsrunserver.py",line95,inhandle
self.run(**options)
File"D:anacondalibsite-packagesdjangocoremanagementcommandsrunserver.py",line102,inrun
autoreload.run_with_reloader(self.inner_run,**options)
File"D:anacondalibsite-packagesdjangoutilsautoreload.py",line585,inrun_with_reloader
start_django(reloader,main_func,*args,**kwargs)
File"D:anacondalibsite-packagesdjangoutilsautoreload.py",line570,instart_django
reloader.run(django_main_thread)
File"D:anacondalibsite-packagesdjangoutilsautoreload.py",line288,inrun
self.run_loop()
File"D:anacondalibsite-packagesdjangoutilsautoreload.py",line294,inrun_loop
next(ticker)
File"D:anacondalibsite-packagesdjangoutilsautoreload.py",line334,intick
forfilepath,mtimeinself.snapshot_files():
File"D:anacondalibsite-packagesdjangoutilsautoreload.py",line350,insnapshot_files
forfileinself.watched_files():
File"D:anacondalibsite-packagesdjangoutilsautoreload.py",line249,inwatched_files
yieldfromiter_all_python_module_files()
File"D:anacondalibsite-packagesdjangoutilsautoreload.py",line103,initer_all_python_module_files
returniter_modules_and_files(modules,frozenset(_error_files))
File"D:anacondalibsite-packagesdjangoutilsautoreload.py",line116,initer_modules_and_files
ifmodule.__name__=='__main__':
File"D:anacondalibsite-packagespy_apipkg.py",line171,ingetattribute
returngetattr(getmod(),name)
File"D:anacondalibsite-packagespy_error.py",line44,ingetattr
raiseAttributeError(name)
AttributeError:name
撒科打诨
浏览 450回答 2
2回答

九州编程

用的什么方式启动的?排错先用python来启动,再配成uwsgi启动pythonmanage.pyrunserver0.0.0.0:8000看看报什么错,定位问题
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答