Move post_syncdb to management and it worked.