Django Page not found (404) when using the Oauth library (log in with Linkedin)

advertisements

I am using the Oauth Library to Log in with LinkedIn but i am getting forllowing Error

Page not found (404)

and the page get landed to

http://127.0.0.1:8000/accounts/profile/

which i have not implemented and unable to understand how to redirect to other page i am using

Django 1.8
Oauth 1.0

I am follwing this link

https://developer.linkedin.com/docs/rest-api

and my INSTALLED_APPS is

INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'rest_framework',
'snippet',
'api',
'UserProfile',
#created for linkedin tutorial
'allauth',
'allauth.account',
'allauth.socialaccount',
'allauth.socialaccount.providers.linkedin',
#    'allauth.socialaccount.providers.linkedin_oauth2',
)

Can anyone would help me out with this


From the FAQ:

When I attempt to login I run into a 404 on /accounts/profile/

When you end up here you have successfully logged in. However, you will need to implement a view for this URL yourself, as whatever is to be displayed here is project specific. You can also decide to redirect elsewhere:

https://docs.djangoproject.com/en/dev/ref/settings/#login-redirect-url