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.
- [Answered ]-How can I close a django 1.8 database cursor and connection?
- [Answered ]-How I can display one field as string from serializer?
- [Answered ]-Django RegexValidator does not display message
- [Answered ]-How do i include my footer.html in my base.html
- [Answered ]-Django models.ForeignKey issue with model with custom foreign key
- [Answered ]-Django Q&Q versus filter.filter
- [Answered ]-Python Django Queryset
- [Answered ]-Django-OperationalError at /register/ no such table: auth_user
- [Answered ]-Django Transaction did not work
Source:stackexchange.com