spectrumsofttech
asked on
How can I solve Bad Magic Error?
ASKER
But .pyc files not generated during running. it throws an exception before it.
Weird indeed. It seems to be caused by the django.mo file having a corrupt magic header (signalling big or little endian), but I can't really tell why. Maybe reinstalling django could fix it?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
So removing these files and running your python script again afterwards could fix it.