pennersr / django-allauth

Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.
https://allauth.org
MIT License
9.51k stars 3.03k forks source link

Table 'navi.socialaccount_socialapp_sites' doesn't exist #161

Closed rohit-nsit08 closed 11 years ago

rohit-nsit08 commented 11 years ago

Hi devs, got this error when tried to connect to facebook on my site [ navi is my database name] . after searching for the table It looks like it shouldn't have asked for it . I'm using django 1.4.3 and latest version of allauth. I can give the full stack trace if it is needed.

rohit-nsit08 commented 11 years ago

found that I need to upgrade my allauth using south and apply some migrations but now I see that third migration has some error . here is my stacktrace :

healthify.local_settings Traceback (most recent call last): File "/Users/rohitjangid/git/NaviHealth/NaviHealth/manage.py", line 8, in execute_from_command_line(sys.argv) File "/Users/rohitjangid/anaconda/lib/python2.7/site-packages/django/core/management/init.py", line 443, in execute_from_command_line utility.execute() File "/Users/rohitjangid/anaconda/lib/python2.7/site-packages/django/core/management/init.py", line 382, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/Users/rohitjangid/anaconda/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv self.execute(_args, _options.dict) File "/Users/rohitjangid/anaconda/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute output = self.handle(_args, _options) File "/Users/rohitjangid/anaconda/lib/python2.7/site-packages/south/management/commands/migrate.py", line 108, in handle ignore_ghosts = ignore_ghosts, File "/Users/rohitjangid/anaconda/lib/python2.7/site-packages/south/migration/init.py", line 166, in migrate_app Migrations.calculate_dependencies() File "/Users/rohitjangid/anaconda/lib/python2.7/site-packages/south/migration/base.py", line 228, in calculate_dependencies migration.calculate_dependencies() File "/Users/rohitjangid/anaconda/lib/python2.7/site-packages/south/migration/base.py", line 362, in calculate_dependencies for migration in self._get_dependency_objects("depends_on"): File "/Users/rohitjangid/anaconda/lib/python2.7/site-packages/south/migration/base.py", line 342, in _get_dependency_objects for app, name in getattr(self.migration_class(), attrname, []): File "/Users/rohitjangid/anaconda/lib/python2.7/site-packages/south/migration/base.py", line 314, in migration_class return self.migration().Migration File "/Users/rohitjangid/anaconda/lib/python2.7/site-packages/south/utils/init.py", line 62, in method value = function(self) File "/Users/rohitjangid/anaconda/lib/python2.7/site-packages/south/migration/base.py", line 305, in migration raise exceptions.BrokenMigration(self, sys.exc_info()) south.exceptions.BrokenMigration: While loading migration 'socialaccount:0003_autoadd_unique_socialaccount_uid_provider': Traceback (most recent call last): File "/Users/rohitjangid/anaconda/lib/python2.7/site-packages/south/migration/base.py", line 301, in migration migration = import(full_name, {}, {}, ['Migration']) File "/Users/rohitjangid/anaconda/lib/python2.7/site-packages/allauth/socialaccount/migrations/0003_autoadd_unique_socialaccount_uid_provider.py", line 6, in class Migration(SchemaMigration): File "/Users/rohitjangid/anaconda/lib/python2.7/site-packages/allauth/socialaccount/migrations/0003_auto__add_unique_socialaccount_uid_provider.py", line 9, in Migration depends_on.append(('facebook', '0003_tosocialaccount'),) AttributeError: 'tuple' object has no attribute 'append'

Finished "/Users/rohitjangid/git/NaviHealth/NaviHealth/manage.py migrate --settings=healthify.local_settings" execution.