I have a Django project that’s managed by South. I ran through the normal procedure when I first started the project:
- Install South
- Add South to INSTALLED_APPS
- Perform initial syncdb
- schemamigration –initial, followed by migrate myapp
Everything’s been working fine and I’ve done several migrations since. Now I enabled the django admin portion of the site (INSTALLED_APPS, urls, etc.). When I tried adding a test user, I was received the following error:
Request Method: POST
Request URL: http://127.0.0.1:8000/admin/auth/user/add/
Django Version: 1.4.3
Exception Type: DatabaseError
Exception Value:
no such table: django_admin_log
I tried running schemamigration myapp --auto but it’s telling me nothing’s changed. I even tried running convert_to_south django.contrib.admin, as well as trying a fake migration, but I keep getting the same error. Any help is appreciated.
second’s answer is correct
so using south isn’t a possible solution.
Your issue is that the syncdb thinks that the table for django_admin_log has already been created.
Solution
django_content_typetable.name="log entry", app_label="admin", model="logentry"content type.