[Fixed]-Django debug doesn't print set because of unicode chars (python3)

1👍

Finally found!

http://codestrian.com/index.php/2015/06/26/a-guide-to-setting-up-django-logging-on-linux/

  'rotate_file':{
            'level': 'ERROR',
            'class': 'logging.handlers.RotatingFileHandler',
            'filename': os.path.join(BASE_DIR, 'log/error.log'),
            'formatter': 'verbose',
            'maxBytes': 10485760,
            'backupCount': 20,
            'encoding': 'utf8'
        },

and the last line is the most important: 'encoding': 'utf8'

Leave a comment