Friday, May 16, 2014

edx-platform - Error when accessing Course Creator link in the django admin interface of CMS

After logged in into the django admin interface of CMS (/admin) as superuser, click the Course Creator link, I got this error:

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


First, I tried to migrate the db of edx following the official wiki of Open edX (https://github.com/edx/configuration/wiki/edX-Managing-the-Production-Stack)

sudo -u www-data /edx/bin/python.edxapp ./manage.py lms syncdb --migrate --settings aws

But not thing changed. After a while, I noted the migrating command, It only migrates the lms, not the cms. So, gotcha! I just need to migrate the db of CMS and everything will be fine:

sudo -u www-data /edx/bin/python.edxapp ./manage.py cms syncdb --migrate --settings aws