Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8336113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:53:09+00:00 2026-06-09T03:53:09+00:00

I am trying to work with django-allauth. I followed the instructions at github page

  • 0

I am trying to work with django-allauth. I followed the instructions at github page and done following:

  1. Added allauth urls into urls.py

    urlpatterns += patterns ('',
        url('^accounts/', include('allauth.urls')),
        url('^accounts/profile/$', ProfileView.as_view(), name='ProfileView'),
        url('^login/$', login, name='account_login'),
        url('^logout/$', logout, name='account_logout'),
        url('^login/cancelled/$', login_cancelled, name='socialaccount_login_cancelled'),
        url('^login/error/$', login_error, name='socialaccount_login_error'),
    )
    
  2. Updated TEMPLATE_CONTEXT_DIRS, TEMPLATE_CONTEXT_PROCESSORS, AUTHENTICATION_BACKENDS and INSTALLED_APPS. Also added ACCOUNT_AUTHENTICATION_METHOD = "username_email"

  3. Added Key and Secret for twitter in the Social apps table.

  4. Copied django-allauth templates to my app’s directory and modified it. I can see all the templates working fine like /accounts/signup/ and /accounts/social/connections/.

Now, from connections or signup when I click Twitter link /accounts/twitter/login/ I ended up with the following error:

Social Network Login Failure

An error occured while attempting to login via your social network
account.

Am I missing something? May be some stupid mistake (Twitter login url? No clues!). I also tried to find some tutorials based on the latest codebase but unable to find any. django-allauth example on github wasn’t of any help. Please help. Also, please feel free to provide me any links or tutorials based on the latest codebase.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T03:53:11+00:00Added an answer on June 9, 2026 at 3:53 am

    I am a beginner so you can expect some stupid mistakes from people like me but I try to learn. I spent many hours trying to resolve this. Finally the issue turns out to be Twitter App Key Settings:

    I get “Social Network Login Failure” error because my Twitter App settings are not configured for the localhost. Make sure you have the following settings configured in your Twitter App for your localhost (development machine):

    Callback URL: http://127.0.0.1:8000/

    NOTE: If you want to use it for production server then you need to set Callback to your domain name as follows:

    Callback URL: http://Your_Domain_Name.com

    OR better use another set of Keys specifically for production use only.

    BONUS : If you are using django-social-auth and you don’t have these settings configured then you may end up with 401 Unauthorized error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get my local dev django app to work after following these
I'm trying to work out the most django-reffic way to do the following: Models
I'm trying to get the following to work: http://django-rest-framework.org/examples/views.html in my own django app.
I'm trying to get Spatialite to work with my django app, however, I've hit
I am trying to understand how Django + Jquery and Ajax calls work together.
i am trying to work out the following problem in Java (although it could
I'm trying to work out an exception problem I've been having with django: I
I'm trying to get the django-cms to work on google-app-engine. Did anyone succeed in
Trying to work with a trivial navigation menu using django templates, I'm having trouble
I've been trying to get some Ajax stuff to work in my Django application,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.