Friday, May 9, 2014

edx-platform - Error when deleting users from django admin interface

I got this error when trying to delete users from the django admin interface of the edx platform:

DatabaseError: (1146, "Table 'edxapp.social_auth_usersocialauth' doesn't exist")

This bug can be reproduced on edx-platform master (commit: 04376e0) according to William Daly (

I reported this issue at

A quick fix is to:

1. Add 'social.apps.django_app.default' to INSTALLED_APPS in /edx/app/edxapp/edx-platform/lms/envs/

2. Then run the db migration:

$ cd /edx/app/edxapp/edx-platform
$ sudo -u www-data /edx/bin/python.edxapp ./ lms syncdb --migrate --settings aws