Reason 1:
In the record file generated by each change in the migrations folder in the app, there are operations to delete a table or delete a field, but these modifications are generated in someone else’s environment. When running in your own environment for the first time, you will run the deletion operation first when Python manage. Py migrate
, At this time, an error will be reported Django. DB. Utils. Programmingerror: (1146, "table 'doesn't exist")
Reason 2:
The table was called first in the urls.py file.
Read More:
- django.db.utils.OperationalError: no such table: django_admin_log
- Error 1146 (42s02): table ‘database name. Table name’ doesn’t exist ‘
- DB: the solution of table already exist when migrating
- django.db.utils .IntegrityError: NOT NULL constraint failed: blog_ blog.author_ ID error resolution
- django.db.utils.IntegrityError: UNIQUE constraint failed: auth_user.username
- mysql Table ‘performance_ schema.session_ Variables’ doesn’t exist solution
- How to solve the problem of error reporting in the introduction of Python Django no module name ‘Django. Utils. Six’
- 1072 – Key column ‘xxx_id’ doesn’t exist in table
- MySQL – ERROR 1146 (42S02): Table ‘mysql.user’ doesn’t exist
- Table ‘sell.hibernate_sequence‘ doesn‘t exist
- django.core.exceptions . improveconfigured: error loading MySQL DB module. Django configuring MySQL database
- Some mistakes and solutions in Django
- Solve the problem of error loading MySQL DB module. Encountered during Django project
- An error occurred when opensips started the service“ ERROR:core :db_ check_ table_ Version: invalid version 7 for Table dialog found “
- DB2 table annotation pull
- DB2 encountered the problem of sqlcode = 911 lock table when updating record update
- Solutions to Django is not importable in this environment
- DB2 create table error – 104 42601 illegal symbol encountered in SQL statement
- db2 Database Error: table space access is not allowed
- Solve selenium error — unknown error: devtoolsactivport file doesn’t exist