79641978

Date: 2025-05-28 10:09:40
Score: 0.5
Natty:
Report link

It sounds like Django thinks migrations ran but the tables didn’t actually get created in MySQL—this can happen if Django is connected to a different database than the one you’re checking in phpMyAdmin. Double-check your DATABASES setting in settings.py to ensure it’s pointing to the correct MySQL database. Also, verify that your MySQL user has the right permissions to create tables. If those look good, try running python manage.py migrate --run-syncdb to force Django to create missing tables without migrations. Lastly, check if you have any database routers or custom migration logic that might be interfering.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Liam