The main reason is that Django is upgraded or downgraded;
Solution:
1. Delete database content
2、python manage.py makemigrations
3、python manage.py migrate
4、python manage.py createsuperuser
Read More:
- [Solved] Error “incorrect padding” in decoding of Base64 module in Python
- Python: Django exception when executing migrate operation: django.db.utils.OperationalError: (1051, “Unknown table’xxx’”)
- [Solved] Python Django error: error: (1146, “Table ‘mydb.django_session’ doesn’t exist”)
- [Solved] Django project locally Open Error: importerror: couldn’t import Django
- [Solved] Django Error: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
- [Solved] Django Configurate celery error: django.db.utils.DatabaseError
- [Solved] Django.core.exceptions.ImproperlyConfigured: SQLite 3.9.0 or later is required (found 3.7.17).
- Django PythonConsole error: Requested setting DEFAULT_INDEX_TABLESPACE
- [Solved] django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.Did you install mysqlclie
- Django Issues: TypeError: “Settings” object is irreversible
- [Solved] Saving to Database Error: pymysql.err.DataError: (1366, “Incorrect string value…
- [Solved] Django backend processing Base64 file upload error
- Python Use sqlalchemy Error: pymssql.ProgrammingError: (102, b“Incorrect syntax near ‘(‘.DB-Lib error
- [Solved] Django Error: Attributeerror: ‘wsgirequest’ object has no attribute ‘is_ajax ‘
- [Solved] Python Project Error: django.core.exceptions.ImproperlyConfigured: WSGI application ‘WebTool.wsgi.application
- [Solved] from django.core.cache import cache Error
- [Solved] Python Networkx Error: Network error: random_state_index is incorrect
- Zlib.error: error – 3 while decompressing: incorrect header check in Python
- [Solved] Django Access to the backend error: Invalid block tag on line 98: ‘trans‘, expected ‘elif , ‘else‘或‘ endif. Did you forget