You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Hi there,
I'm on python 3.6.8, lino==19.2.2, lino-xl==19.2.0;
When I follow the social authentication page on the book mange.py prep won't work anymore.
In my Site class I do: social_auth_backends = [ 'social_core.backends.google.GoogleOAuth2', ], and then set the appropiate settings for the backend and when running prep this comes:
`initdb demo_users` started on database test.
Operations to perform:
Apply all migrations: contenttypes, sessions, social_django
Running migrations:
Applying contenttypes.0001_initial... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying sessions.0001_initial... OK
Applying social_django.0001_initial...
Traceback (most recent call last):
File "lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute
return self.cursor.execute(sql, params)
psycopg2.ProgrammingError: relation "users_user" does not exist
The furthest I came is that initdb does first the migrations and after migrations it does the non-migration capable applications. What happens (I think) is that modlib.users is not migration capable while social_django is.
So tables for social_django are created before modlib.users tables even exist, hence the exception.