[Answered ]-No such table [appname]_userprofile

2👍

By default, Django uses <appname>_<tablename> for the names of the database tables. You can override the table name with the db_table settings. For more info, see the docs.

If you are getting a ‘no such table’ error, then it sounds like you need to create a migration for you app, and then run it.

0👍

I don’t know why this is, but running manage.py makemigrations did the trick. makemigrations on its own did not detect changes.

0👍

Did you try

python ./manage.py migrate --fake-initial

It worked for me

Leave a comment