error: (1146, "Table 'mydb.django_session' doesn't exist")
Because there is no Django in the database table_session.
Execute the command at the terminal to migrate the data structure
$ python manage.py migrate
After executing the above command, the output results are all OK. You can see that many tables have been added to the database table, The details are as follows
# By default 10 tables are automatically created in our database, as follows.
MariaDB [mydemo]> show tables;
+----------------------------+
| Tables_in_mydemo |
+----------------------------+
| auth_group |
| auth_group_permissions |
| auth_permission |
| auth_user |
| auth_user_groups |
| auth_user_user_permissions |
| django_admin_log |
| django_content_type |
| django_migrations |
| django_session |
| stu |
+----------------------------+
11 rows in set (0.00 sec)
Then it was solved
Read More:
- Python: Django exception when executing migrate operation: django.db.utils.OperationalError: (1051, “Unknown table’xxx’”)
- [Solved] Django Configurate celery error: django.db.utils.DatabaseError
- [Solved] Django project locally Open Error: importerror: couldn’t import Django
- [Solved] Django Error: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
- Using postman Test Django Interface error: RuntimeError:You called this URL via POST,but the URL doesn‘t end in a slash
- [Solved] Python Project Error: django.core.exceptions.ImproperlyConfigured: WSGI application ‘WebTool.wsgi.application
- Django PythonConsole error: Requested setting DEFAULT_INDEX_TABLESPACE
- [Solved] Django backend processing Base64 file upload error
- [Solved] Django.core.exceptions.ImproperlyConfigured: SQLite 3.9.0 or later is required (found 3.7.17).
- [Solved] django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.Did you install mysqlclie
- Django Issues: TypeError: “Settings” object is irreversible
- [Solved] Django Error: Attributeerror: ‘wsgirequest’ object has no attribute ‘is_ajax ‘
- Django Error: binascii.Error: Incorrect padding [How to Solve]
- [Solved] Django backend error: Assertion failed: (NSViewIsCurrentlyBuildingLayerTreeForDisplay()
- [Solved] django AttributeError: ‘UserComment‘ object has no attribute ‘save‘
- Django WSGI protocol application, based on wsgiref module DIY a web framework
- Django Error: ‘polls‘ is not a registered namespace
- [Solved] from django.core.cache import cache Error
- [Solved] gym.error.NameNotFound: Environment PongNoFrameskip doesn’t exist.