did you add facebook namespace in your main project urls.py ?
On Friday, May 17, 2013 11:20:34 AM UTC+4:30, Avnesh Shakya wrote:
-- On Friday, May 17, 2013 11:20:34 AM UTC+4:30, Avnesh Shakya wrote:
hi,
I am getting error -
NoReverseMatch at /login/
u'facebook' is not a registered namespace inside 'socialregistration'
when I am clicking on login link. I have installed all required things using documantation -
http://django-socialregistration. readthedocs.org/en/latest/ contrib/facebook.html
but it's showing error.
Please help me... I am unable to find this error.
settings.py- i have added-
INSTALLED_APPS = (
'apps.socialregistration',
'apps.socialregistration.contrib.facebook',
)
and
AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend',
'apps.socialregistration.contrib.facebook.auth. FacebookAuth',
)
FACEBOOK_APP_ID = '278691145597349'
FACEBOOK_SECRET_KEY = '359ed87e4cc3b3cdf2e567f7ab043d 8c'
and in login.html page
i have added-
{% load facebook %}
{% facebook_button %}
thanks in advance.
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/da1bb382-fba2-4412-a0a6-e342e902fa5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment