为了账号安全,请及时绑定邮箱和手机立即绑定

有没有人遇到过这个问题哈!django 启动报错 同一个项目 放到A电脑没问题 B电脑就报错 且DEBUG找不到这个问题 跪求!

有没有人遇到过这个问题哈!django 启动报错 同一个项目 放到A电脑没问题 B电脑就报错 且DEBUG找不到这个问题 跪求!

慕虎7371278 2019-10-25 23:25:43
Traceback(mostrecentcalllast):File"D:/py/1S1K/spider_one_dow/manage.py",line21,inmain()File"D:/py/1S1K/spider_one_dow/manage.py",line17,inmainexecute_from_command_line(sys.argv)File"D:anacondalibsite-packagesdjangocoremanagement__init__.py",line381,inexecute_from_command_lineutility.execute()File"D:anacondalibsite-packagesdjangocoremanagement__init__.py",line375,inexecuteself.fetch_command(subcommand).run_from_argv(self.argv)File"D:anacondalibsite-packagesdjangocoremanagementbase.py",line323,inrun_from_argvself.execute(*args,**cmd_options)File"D:anacondalibsite-packagesdjangocoremanagementcommandsrunserver.py",line60,inexecutesuper().execute(*args,**options)File"D:anacondalibsite-packagesdjangocoremanagementbase.py",line364,inexecuteoutput=self.handle(*args,**options)File"D:anacondalibsite-packagesdjangocoremanagementcommandsrunserver.py",line95,inhandleself.run(**options)File"D:anacondalibsite-packagesdjangocoremanagementcommandsrunserver.py",line102,inrunautoreload.run_with_reloader(self.inner_run,**options)File"D:anacondalibsite-packagesdjangoutilsautoreload.py",line585,inrun_with_reloaderstart_django(reloader,main_func,*args,**kwargs)File"D:anacondalibsite-packagesdjangoutilsautoreload.py",line570,instart_djangoreloader.run(django_main_thread)File"D:anacondalibsite-packagesdjangoutilsautoreload.py",line288,inrunself.run_loop()File"D:anacondalibsite-packagesdjangoutilsautoreload.py",line294,inrun_loopnext(ticker)File"D:anacondalibsite-packagesdjangoutilsautoreload.py",line334,intickforfilepath,mtimeinself.snapshot_files():File"D:anacondalibsite-packagesdjangoutilsautoreload.py",line350,insnapshot_filesforfileinself.watched_files():File"D:anacondalibsite-packagesdjangoutilsautoreload.py",line249,inwatched_filesyieldfromiter_all_python_module_files()File"D:anacondalibsite-packagesdjangoutilsautoreload.py",line103,initer_all_python_module_filesreturniter_modules_and_files(modules,frozenset(_error_files))File"D:anacondalibsite-packagesdjangoutilsautoreload.py",line116,initer_modules_and_filesifmodule.__name__=='__main__':File"D:anacondalibsite-packagespy_apipkg.py",line171,ingetattributereturngetattr(getmod(),name)File"D:anacondalibsite-packagespy_error.py",line44,ingetattrraiseAttributeError(name)AttributeError:name
查看完整描述

2 回答

?
侃侃尔雅

TA贡献1801条经验 获得超16个赞

用的什么方式启动的?排错先用python来启动,再配成uwsgi启动
pythonmanage.pyrunserver0.0.0.0:8000
看看报什么错,定位问题
                            
查看完整回答
反对 回复 2019-10-25
  • 2 回答
  • 0 关注
  • 505 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信