I am trying to add Google Cloud Storage functionality to a Python GAE app that is already running with significant functionality. I work entirely within PyCharm on my developmen
The accepted answer's solution
import lib.module_name
definitely can solve the problem. But I don't like add lib
in front of every single module and happened to see how Google suggest import third party libs like this.
appengine will automatically run a file called appengine_config.py
. So you can create such a file and put
from google.appengine.ext import vendor
vendor.add('lib')
inside that file. This will help you tell appengine to find dependencies in that folder, so you can simply write
import cloudstorage as gcs