问题描述
我是Python新手(以及GAE),我正在尝试在应用程序中包含gaesessions,这正是我所做的:
我将gaesessions文件夹复制到我的src文件夹(该文件夹包含 __ init __。py
文件)
并将其添加到我的工作代码:
from gaesessions import get_current_session
session = get_current_session()
code>
我收到以下错误:
如果是这样,您很可能会跳过步骤。按照说明创建一个 appengine_config.py
并重新启动dev服务器;这应该可以解决您的错误。
I'm new to Python (as well as GAE), I'm trying to include gaesessions in my application, this is exactly what I did:
I copied the gaesessions folder to my src folder (the folder includes __init__.py
file)
and added this to my working code:
from gaesessions import get_current_session
session = get_current_session()
I received the following error:
You've omitted the actual exception from your stack trace, but I'm guessing it's this:
If so, you've most likely skipped the middleware configuration step. Create an appengine_config.py
per the instructions and restart the dev server; this should resolve your error.
这篇关于如何在谷歌应用程序引擎中使用gaesessions的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!