Trying to get facebook connect to work on app engine, and so I'm following these instructions:
http://www.slideshare.net/mrtrosen/lab305-django-facebook-connect-integration-example
One of the steps requires me to add to my middleware_classes, and so I've added the following to settings.py (copied from slide 18 in the presentation above):
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'facebook.djangofb.FacebookMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'facebookconnect.middleware.FacebookConnectMiddleware',
)
However, when I view my app locally (which was working before adding this to settings.py), I get the following error:
ImproperlyConfigured: Error importing middleware facebook.djangofb: "No module named facebook.djangofb"
However, when I go to the terminal, I am able to run python and when I type "import facebook.djangofb" I do not get any error.
FYI, the facebook package is in /Library/Python/2.6/site-packages.
Any ideas as to why this might be happening? I've been stuck on this for a while so any help would be greatly appreciated.
Thanks!