python - Django social_auth doesn't create models -
i'm using django social auth in project, running manage.py syncdb
doesn't create required tables in database. tried making new empty project , adding social_auth
installed apps didn't work (to find out if package conflics other apps in project or not).
import social_auth
works fine means package installed successfully.
i tried deleting tables in database , running syncdb
on , over, didn't help.
after logging in , authorizing app error comes up:
programmingerror @ /complete/instagram/ (1146, "table '<my db name>.social_auth_usersocialauth' doesn't exist")
which implies required tables not created on database.
my installed_apps
, result of syncdb:
installed_apps = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'social_auth', ) creating tables ... creating table django_admin_log creating table auth_permission creating table auth_group_permissions creating table auth_group creating table auth_user_groups creating table auth_user_user_permissions creating table auth_user creating table django_content_type creating table django_session installed django's auth system, means don't have superusers defined. create 1 now? (yes/no): no installing custom sql ... installing indexes ... installed 0 object(s) 0 fixture(s)
ps: used python social auth
instead of django social auth
, have no problem now, question still exists, why no table created when syncdb
called?!
Comments
Post a Comment