我試圖清除我的本地數據庫一樣解釋in the docsAppConfigNotFoundError對Django的nonrel和谷歌應用程序引擎dev_appserver.py
但是當我嘗試和運行dev_appserver.py --clear_datastore
命令我得到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
據我可以告訴我。我在保存我的應用程序的目錄中,並且正在運行:「dev_appserver.py --clear_datastore dennys」其中「dennys」是我的應用程序的名稱 –
dev_appserver正在尋找應用程序的路徑,而不僅僅是它的名稱。我懷疑你正在從google_appengine目錄運行dev_appserver;您的項目不太可能位於該目錄的子目錄中。 –
我真的很感謝你的幫助Moishe。我目前在我的項目目錄中:「/ Users/bryce/Documents/Aptana Studio 3 Workspace/DennysBE 」,我的項目位於「/ Users/bryce/Documents/Aptana Studio 3 Workspace/DennysBE/dennys 」 。所以路徑與項目名稱相同。我應該在別的地方運行dev_appserver命令嗎? –