5

I have an App Engine app running locally using dev_appserver.py. In the app directory I have the standard appengine_config.py that is supposed to execute on every request made to the app. In the past it used to execute the module, but suddenly it stopped doing it.

In another app runs on the same machine it works fine.

I checked with Process Monitor to see if the file is loaded from another location, but it's not (I can see the other app's file being loaded).

Any ideas why appengine_config.py is not executed?

5
  • appengine_config.py only runs when an new instance is started. There is no reason to run it for every request. By the way: appengine_config.py is great for changing config defauls (module settings) using lib_config. More info here: developers.google.com/appengine/docs/python/tools/… Commented Sep 23, 2014 at 12:20
  • @voscausa In production you are right, appengine_config.py is loaded when an instance is created. But on the dev server it is loaded every request so you don't have to stop and start the server every time you change the file. Commented Sep 23, 2014 at 13:50
  • YES, there is a reason: debugging. Commented Sep 23, 2014 at 21:12
  • @voscausa I know it's for debugging, that's why I expected the execution of this file in the first place. Commented Sep 24, 2014 at 6:46
  • @Tzach were you able to solve this me too facing same issue ? If yes please let me know the solution which made this work Commented Dec 19, 2017 at 9:53

1 Answer 1

3

I had the same problem before. Solved by changing the loading method in app.yaml to wsgi, for example, from:

script: my_app/main.py

To:

script: my_app.main.application

Let me know if it works for you.

Sign up to request clarification or add additional context in comments.

1 Comment

Nope !! Didn't help in my case

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.