34👍
This is a problem with the IPython encoding that is not UTF-8. export PYTHONIOENCODING=UTF-8
will solve it.
1👍
This did the trick.
# sys.setdefaultencoding() does not exist, here!
import sys
reload(sys) # Reload does the trick!
sys.setdefaultencoding('UTF-8')
- Gunicorn.socket: Failed with result 'service-start-limit-hit'
- ValueError: Incorrect timezone setting while migrating manage.py file in Django
- Use of python super function in django model
- Is there any way to use GUIDs in django?
- How to retrieve all permissions of a specific model in django?
Source:stackexchange.com