1👍
@lerner: You have to import table name correctly. Try to run this import statement in your python shell
from social.apps.django_app.default.models import UserSocialAuth
And hope you can now access your table contents by querying this table.
0👍
There’s definitely a problem in the model import
Is the model in the models.py file? If so does what you’ve written match ? Post the models.py file and the folder structure.
Is the app name actually social.apps.django_app…
Typically a django project is structured thus
Project name
– app name
— models.py
– app name
…
References in django shell are then
from appname.models import modelname
Django would then name the database table
Appname_modelname
Source:stackexchange.com