AppConfigNotFoundError

AppConfigNotFoundError

本文介绍了AppConfigNotFoundError用于Django-nonrel和Google App Engine上的dev_appserver.py的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图清除我的本地数据库,如



但是,当我尝试运行 dev_appserver.py --clear_datastore 命令时,我得到 google.appengine.tools.dev_appserver.AppConfigNotFoundError

  dev_appserver.py  - -clear_datastore dennys 
Traceback(最近一次调用最后一次):
在< module>文件中的第76行/usr/local/bin/dev_appserver.py
run_file(__ file__,globals())
文件/usr/local/bin/dev_appserver.py,第72行,在run_file中
execfile(script_path,globals_)
文件/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_main.py,第687行,位于< module>
sys.exit(main(sys.argv))
文件/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/ dev_appserver_main.py,第575行,主
appinfo,matcher = dev_appserver.LoadAppConfig(root_path,{})
文件/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/目录/资源/ google_appengine / google / appengine / tools / dev_appserver.py,第4359行,在LoadAppConfig中
raise AppConfigNotFoundError
google.appengine.tools.dev_appserver.AppConfigNotFoundError

I'm trying to clear my local db like explained in the docs

But when I try and run the dev_appserver.py --clear_datastore command I get google.appengine.tools.dev_appserver.AppConfigNotFoundError

dev_appserver.py --clear_datastore dennys
Traceback (most recent call last):
  File "/usr/local/bin/dev_appserver.py", line 76, in <module>
    run_file(__file__, globals())
  File "/usr/local/bin/dev_appserver.py", line 72, in run_file
    execfile(script_path, globals_)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_main.py", line 687, in <module>
    sys.exit(main(sys.argv))
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_main.py", line 575, in main
    appinfo, matcher = dev_appserver.LoadAppConfig(root_path, {})
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 4359, in LoadAppConfig
    raise AppConfigNotFoundError
google.appengine.tools.dev_appserver.AppConfigNotFoundError
解决方案

You have to specify the directory of your application in the command line to dev_appserver.py.

这篇关于AppConfigNotFoundError用于Django-nonrel和Google App Engine上的dev_appserver.py的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 21:55