error in AUTHENTICATION using socialregistration

24 views
Skip to first unread message

Avnesh Shakya

unread,
May 17, 2013, 2:50:34 AM5/17/13
to django...@googlegroups.com
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 = '359ed87e4cc3b3cdf2e567f7ab043d8c'

and in login.html page
i have added-
{% load facebook %}
{% facebook_button %}

thanks in advance.

rafiee.nima

unread,
Apr 14, 2014, 12:12:53 PM4/14/14
to django...@googlegroups.com
did you add facebook namespace in your main project urls.py  ?
Reply all
Reply to author
Forward
0 new messages