ModuleNotFoundError: No module named 'facebook.urls'

25 views
Skip to first unread message

Tushar Nadkar

unread,
Nov 20, 2018, 11:14:44 PM11/20/18
to django...@googlegroups.com

I am trying to install Django facebook graph in my project ,

I installed ‘facebook’ in Insatlled_app and added

 

['facebook.middleware.SignedRequestMiddleware',

    'facebook.middleware.AppRequestMiddleware',

]

 

This 2 in MIDDLEWARE_CLASSES

Then added

url(r'^accounts/',include('facebook.backends.registration.urls')),
url(r'^facebook/', include('facebook.urls')),
 
as given in the documentation 
when I compile it showing ModuleNotFoundError: No module named 'facebook.urls'

 

 

Jason

unread,
Nov 21, 2018, 8:11:47 AM11/21/18
to Django users
you need to add the facebook package in your installed apps

prinx

unread,
Nov 21, 2018, 8:38:19 AM11/21/18
to Django users

 
Have you added facebook to installed apps ? if you haven't done so and you are trying to reference it's urls module, you'll most likely get this error

 

Reply all
Reply to author
Forward
0 new messages