Changes between Version 1 and Version 2 of Ticket #35268
- Timestamp:
- Mar 4, 2024, 5:04:08 AM (9 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35268
- Property Component Uncategorized → Database layer (models, ORM)
- Property Resolution → needsinfo
- Property Status new → closed
- Property Summary Error in Django Migration in PostgreSQL : UnicodeDecodeError during 'python manage.py migrate' → Migrations raise UnicodeDecodeError on PostgreSQL.
-
Ticket #35268 – Description
v1 v2 1 1 When running the command 'python manage.py migrate' in a Django project, a UnicodeDecodeError occurs during the migration process. 2 2 3 3 The error trace indicates that the issue is related to decoding a byte (0xbb) at position 79, and the problematic code is within the PostgreSQL database backend connection setup. The error originates from the 'psycopg2' library, and the specific context points to a Unicode decoding problem in the 'data_handler.py' file. The error disrupts the migration process and prevents the successful execution of the command. 4 4 5 5 Here is also Database Setting in my Django Project : 6 6 {{{ 7 7 DATABASES = { 8 8 'default': { … … 18 18 } 19 19 } 20 }}}