FAQ
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.

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Rafiee.nima at Apr 14, 2014 at 4:13 pm
    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:

    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.
    --
    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdjango-users @
categoriesdjango, python
postedMay 17, '13 at 6:50a
activeApr 14, '14 at 4:13p
posts2
users2
websitedjangoproject.com

2 users in discussion

Avnesh Shakya: 1 post Rafiee.nima: 1 post

People

Translate

site design / logo © 2022 Grokbase