Google App Engine アプリから plotly を使用しようとしています。スタンドアロンの python プログラムは機能しますが、それを Google アプリ エンジン アプリに組み込もうとすると、プロジェクトに必要な sqlite と plotly のインポート エラーが発生します。これらのインポートを GA エンジンに認識させるにはどうすればよいですか?
最も単純なコードは次のとおりです。
form="""
<form action="/sqlhandler">
<input name="q">
<input type="Submit">
</form>
"""
class MainPage(webapp2.RequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/html'
self.response.write(form)
class SQLHandler(webapp2.RequestHandler):
def get(self):
q = self.request.get("q")
import sql_queries
url = sql_queries.plot_graph(q)
self.response.headers['Content-Type'] = 'text/html'
self.response.write(url)
app = webapp2.WSGIApplication([
('/', MainPage),
('/sqlhandler', SQLHandler)
], debug=True)