Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Indeed you should not have to change imports in external libraries - though depending on your environment, you might even have too.</p> <h2>PYTHONPATH</h2> <p>Modifying your PYTHONPATH should suffice; PYTHONPATH should contain a 'lib' path that is either absolute or relative to your home, eg. </p> <p>Then you could simply do </p> <pre><code>from jinja2 import WHATEVER </code></pre> <h2>sys.path.append</h2> <p>Another way to go without PYTHONPATH is to use <code>sys.path.append()</code> and add your paths from your python code. I actually favor that, as it also allows to have per-application paths.</p> <h2>use virtualenv</h2> <p>Details would be a bit long to be put here, but please follow the <a href="http://pypi.python.org/pypi/virtualenv" rel="nofollow noreferrer">official doc</a></p> <p>These options applies to general python development rather than GAE specificities; if it does not work on your development machine you should post more details (exact imports, absolute paths, pythonpath...).</p> <p>A proper project structure and use of appcfg.py should workout dependencies when uploading to google: please take a look at this good answer: <a href="https://stackoverflow.com/questions/4863557/how-do-i-manage-third-party-python-libraries-with-google-app-engine-virtualenv/4863970#4863970">How do I manage third-party Python libraries with Google App Engine? (virtualenv? pip?)</a> and follow those guidelines.</p> <p>A nice way to go with GAE is through yaml application directives. Please take a look at the doc for includes: <a href="http://code.google.com/appengine/docs/python/config/appconfig.html#Includes" rel="nofollow noreferrer">http://code.google.com/appengine/docs/python/config/appconfig.html#Includes</a></p> <p><strike>Also remember that GAE <a href="http://code.google.com/appengine/docs/python/overview.html" rel="nofollow noreferrer">officially supports</a> python 2.5, and 2.7 support <a href="http://code.google.com/appengine/docs/python/gettingstartedpython27/" rel="nofollow noreferrer">is experimental</a></strike></p> <p><em>Python 2.7 is now <a href="https://developers.google.com/appengine/docs/python/python27/" rel="nofollow noreferrer">officially supported</a></em></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload