b-ryce
b-ryce

Reputation: 5828

AppConfigNotFoundError for dev_appserver.py on Django-nonrel and Google App Engine

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

Upvotes: 2

Views: 1161

Answers (3)

Thomas Chille
Thomas Chille

Reputation: 166

You are missing the boolean yes value as stated in the docs:

dev_appserver.py --clear_datastore=yes myapp

Upvotes: 0

Chris Dutrow
Chris Dutrow

Reputation: 50372

I solved this problem by going to:

Run --> Debug Configurations --> (right click) PyDev Google App Run --> New

Type the project name under "Project".

Then click on "Arguments" and put the path location of where your app.yaml file is. The picture below describes what I'm talking about:

enter image description here

Upvotes: 1

Moishe Lettvin
Moishe Lettvin

Reputation: 8471

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

Upvotes: 2

Related Questions