即时通讯工作在谷歌应用程序引擎的一些基本的python的东西,我无法找出构建我的处理程序的正确方法。导入和结构python模块/类
- /main.py
- /project/handlers/__init__.py
- /project/handlers/AccountHandler.py
的AccountHandler基本上是一个类
class AccountHandler(webapp.RequestHandler):
当使用从project.handlers进口AccountHandler python总是给我一个
TypeError: 'module' object is not callable
我该如何命名/导入/构造我的类?
欢呼声, 马丁
他有`__init __。py`。 Markdown刚刚将下划线解释为格式。 – 2010-12-09 21:48:28
谢谢,我没有注意到格式。 – Velociraptors 2010-12-09 22:03:06