开发者

Google App Engine won't recognize facebook package unless I rename it

I'm trying to intergrate Facebook Connect into an GAE app. I've got a basic folder structure like so:

/gae-root
    /myapp
        /templates
        /etc
    app.yaml
    settings.py

and I tried to add the PyFacebook library like so:

/gae-root
    /myapp
        /templates
        /etc
    /facebook
        /djangofb
    app.yaml
    settings.py

I thought this would work, but now when I try to import facebook开发者_JAVA百科 it throws a module not found error. What's even weirder is that if I rename the directory from facebook to foo, the import now works but I'll hit errors later when I try to get the current logged in user.

Literally all I did was move the directory into my folder structure and try an import. What am I missing? Sorry if this is an easy question.


It was a problem with an extra .pth file in my site-packages directory.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜