This is because the get function is used in the view function to get data that does not exist
For example, there is no data in the database with the name hello1, use the following statement to access
message = Message.objects.get(name='hello1')
will report an error message = Message.objects.get(name='boddy1')
Solution.
See the following figure:
Click the link in the box above to automatically enter line 323 of the debug.py file, and modify line 321 as shown in the figure below:
Run again:
In this case, the error message is normal, the query data does not exist
This problem does not exist in MAC and Linux, where the encoding has been set to utf8 by default.
Similar Posts:
- Database Backup Error: mysqldump: Got error: 1146: Table ‘enwei_hq.tb_classification’ doesn’t exist when using LOCK TABLES
- [Solved] Lazy loading NSBundle MobileCoreServices.framework…
- Vue solves the problem of space and blank line error reporting
- [Solved] Fatal error: Call to undefined function json_decode()
- IDEA double click can’t open no response Issue [How to Solve]
- How to Solve Error: use a kernel appropriate for your CPU
- [Solved] MYSQL Workbench Error: ssl is required but the server doesn’t support it
- Jenkins management interface Error: incorrect reverse proxy settings [How to Solve]
- Greenplum Error: query plan with multiple segworker groups is not supported
- [Solved] ESLint Error: Line 10 exceeds the maximum line length of 100