I recently created a google appengine project that was a part of the google app engine tutorial ( Python ). When I tried to deploy the application, it was not getting deployed. When I tried the application on the browser, it threw a Internal Server Error saying NoIndexError.

The best way to fix it, is to upload the index.yaml file in your application directory by issuing the following command,

appcfg.py update_indexes .

appcfg.py is a part of google app engine sdk. It’s available at /usr/local/googleappengine/appcfg.py
I executed this command from my applications root directory. It asked for the gmail user name and password before uploading the index.

The Index was not ready to be served as soon as I uploaded it. It took some time to build the index before I could see the application on the browser.

Recently, I built an application using Django. I wanted to create a standalone script that used the My App’s model API to insert data into Database.

The Django Document says:

“If you’d rather not use manage.py, no problem. Just make sure mysiteandpollsare at the root level on the Python path (i.e., import mysiteandimport pollswork) and set theDJANGO_SETTINGS_MODULE environment variable tomysite.settings.”

I was little confused about those statements.

So what is PYTHONPATH? In general, it’s the collection of all searchable paths where python would search for modules that you might use in your programs.

Initially, I screwed up the environmental variables and this is the error that I got.