allauth with github

691 views
Skip to first unread message

Shaifali Agrawal

unread,
Jun 6, 2014, 6:13:53 AM6/6/14
to django-...@googlegroups.com
Hello

I want to use allauth for single sign on with github; as per documentation and other web pages from google I followed steps:

  • installed allauth
  • modified settings.py and urls.py
  • added socialapp through admin panel of my application
  • added base.html in templates folder

Then localhost:8000/accounts/login page is working correct, but when I click on signin with github I get following error. Please tell me where I am lacking!

DoesNotExist at /accounts/github/login/

SocialApp matching query does not exist.
Request Method: GET
Request URL: http://127.0.0.1:8000/accounts/github/login/?process=login
Django Version: 1.6
Exception Type: DoesNotExist
Exception Value:
SocialApp matching query does not exist.
Exception Location: /home/dc/.virtualenvs/try/local/lib/python2.7/site-packages/django/db/models/query.py in get, line 307
Python Executable: /home/dc/.virtualenvs/try/bin/python
Python Version: 2.7.6
Python Path:
['/home/dc/ptug/try/try',
 '/home/dc/.virtualenvs/try/lib/python2.7',
 '/home/dc/.virtualenvs/try/lib/python2.7/plat-x86_64-linux-gnu',
 '/home/dc/.virtualenvs/try/lib/python2.7/lib-tk',
 '/home/dc/.virtualenvs/try/lib/python2.7/lib-old',
 '/home/dc/.virtualenvs/try/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/home/dc/.virtualenvs/try/local/lib/python2.7/site-packages',
 '/home/dc/.virtualenvs/try/lib/python2.7/site-packages']
Server time: Fri, 6 Jun 2014 10:10:42 +0000

Lucas Simon Rodrigues Magalhaes

unread,
Jun 25, 2014, 12:27:32 PM6/25/14
to django-...@googlegroups.com
Create a social app in django admin. And in GitHub Applications set the url
Reply all
Reply to author
Forward
0 new messages