You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImproperlyConfigured: Module "django_facebook.middleware" does not define a "FacebookMiddleware" attribute/class
I also tried in shell:
windmaple@windmaple-VirtualBox:~/git/master$ ./manage.py shell
No handlers could be found for logger "django_facebook.models"
Python 2.7.5+ (default, Sep 19 2013, 13:49:51)
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
from django_facebook import middleware
middleware.FacebookMiddleware
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'FacebookMiddleware'
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
I used pip to install django-facebook. I have the following settings:
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django_facebook.middleware.FacebookMiddleware',
):
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'south',
'feeds',
'login_feeds',
'readhistory',
'django_facebook',
)
I get this error when running the server:
ImproperlyConfigured: Module "django_facebook.middleware" does not define a "FacebookMiddleware" attribute/class
I also tried in shell:
windmaple@windmaple-VirtualBox:~/git/master$ ./manage.py shell
No handlers could be found for logger "django_facebook.models"
Python 2.7.5+ (default, Sep 19 2013, 13:49:51)
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
What am I doing wrong?
The text was updated successfully, but these errors were encountered: