Questions

google+ login using django-allauth gives Internal ServerError(500)

0

Internal Server Error(500)

I am getting this error when trying to create google+ login in my project though I have configured settings for client id and client secret correctly.



asked 1 year, 10 months ago
Reputation: 1





1 Answer

0

As you have already configured settings for client id and client secret correctly.

Make sure you have social account apps there in settings.py.

settings.py

INSTALLED_APPS = [
    # my apps
    .....
    # pre installed apps
    .....
    # installed apps
    .....
    # social apps
    'allauth',
    'allauth.account',
    'allauth.socialaccount',
    'allauth.socialaccount.providers.google',
]

and if this is correct then problem maybe you have not restarted server after making changes.

server restart

ssh to server and the put following commands

$ sudo service gunicorn restart
$ sudo service nginx restart

and if you use apache server then restart it accordingly.

SITE ID

If stiill not works may be your site it not integrated, put your site-id in settings.py

SITE_ID = 1

New Keys

If still not works try changing your keys by reset and get new keys

Hope it works then.

Most Importantly restart your server again

answered 1 year, 10 months ago
Reputation: 1





Your Answer

Nothing to preview

Post Answer



Asked:  1 year, 10 months ago
Viewed:  469 times
Active:  1 year, 10 months ago