On Thu, Dec 29, 2022 at 3:44 AM Mark Sapiro <mark@msapiro.net> wrote:
On 12/28/22 11:37, Odhiambo Washington wrote:
On Wed, Dec 28, 2022 at 8:23 PM Mark Sapiro <mark@msapiro.net> wrote:
On 12/27/22 21:46, Odhiambo Washington wrote:
On Tue, Dec 27, 2022 at 8:08 PM Mark Sapiro <mark@msapiro.net> wrote:
I see from another post that you've decided against using Twitter, but to answer the question, Twitter does not require adding anything to SOCIALACCOUNT_PROVIDERS.
I tried it and ended up with:
ERROR 2022-12-28 08:40:18,895 97440 django.request Internal Server Error: /accounts/twitter/login/ Traceback (most recent call last): ... allauth.socialaccount.models.SocialApp.DoesNotExist: SocialApp matching query does not exist.
Do you have
'allauth.socialaccount.providers.twitter',
in INSTALLED_APPS?
Here is what I have in settings_local.py:
INSTALLED_APPS = ( 'hyperkitty', 'postorius', 'django_mailman3', # Uncomment the next line to enable the admin: 'django.contrib.admin', # Uncomment the next line to enable admin documentation: 'django.contrib.admindocs', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'django_gravatar', 'compressor', 'haystack', 'django_extensions', 'django_q', 'allauth', 'allauth.account', 'allauth.socialaccount', #'django_mailman3.lib.auth.fedora', #'allauth.socialaccount.providers.openid', 'allauth.socialaccount.providers.github', #'allauth.socialaccount.providers.gitlab', 'allauth.socialaccount.providers.google', 'allauth.socialaccount.providers.facebook', 'allauth.socialaccount.providers.twitter', #'allauth.socialaccount.providers.stackexchange', )
Did you add an app at https://site.name/admin/socialaccount/socialapp/ with twitter as a provider? See
https://django-allauth.readthedocs.io/en/latest/providers.html#twitter-oauth...
Exactly, and I have entered all the credentials from the "OAuth 2.0 Client ID and Client Secret" of the twitter developer portal.
https://webmail.kictanet.or.ke/~wash/twitter-oauth.png
I have checked my settings_local.py several times trying to find out why the entry is ignored.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)