Discussion:
ModuleNotFoundError: No module named 'facebook.urls'
Tushar Nadkar
2018-11-21 04:14:03 UTC
Permalink
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'
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5bf4db8a.1c69fb81.7731a.9b99%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.
Jason
2018-11-21 13:11:47 UTC
Permalink
you need to add the facebook package in your installed apps
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d9614e59-de88-4213-833c-71b48dd80a09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
prinx
2018-11-21 12:06:34 UTC
Permalink
Post by Tushar Nadkar
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'
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
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c23bfde3-f724-4ccc-9250-f848dd458000%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...