Indeed, you do not need to change the import in external libraries, although depending on your environment you may even have one.
PYTHONPATH
Modification of your PYTHONPATH should be sufficient; PYTHONPATH should contain the path "lib", which is absolute or relative to your home, for example.
Then you could just do
from jinja2 import WHATEVER
sys.path.append
Another way to navigate without PYTHONPATH is to use sys.path.append()
and add your paths from your Python code. I really approve of this, as it also allows you to have paths for each application.
use virtualenv
The details will be a little long so that they can be placed here, but please follow the official document
These options apply to general python development, not GAE features; if it does not work on your development machine, you should post more detailed information (exact import, absolute paths, pythonpath ...).
The proper design of the project and the use of appcfg.py should be workout dependent on google loading: please take a look at this good answer: How do I manage third-party Python libraries using the Google App Engine? (virtualenv? pip?) and follow these recommendations.
A good way to go with GAE is through the yaml application directives. Please take a look at the document, which includes: http://code.google.com/appengine/docs/python/config/appconfig.html#Includes
Also remember that GAE officially supports python 2.5 and 2.7 supports is experimental
Python 2.7 is now officially supported
source share