skip to Main Content

Django HttpResponse "expected a bytes-like object, str found" – CentOS

I'm getting the above TypeError from a healthcheck route on Django 3.1.2 on python 3.6. The full error logged is: ERROR 2020-11-02 18:32:32,046 /home/centos/venv/lib/python3.6/site-packages/django/utils/log.py log_response Internal Server Error: /healthcheck/ Traceback (most recent call last): File "/home/centos/venv/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner…

VIEW QUESTION

Redis – Plugin caching_sha2_password could not be loaded: /mariadb19/plugin/caching_sha2_password.so: cannot open shared object file

I am trying to dockerise my Django app. docker-compose.yml version: "3.8" services: db: image: mysql:8 command: --default-authentication-plugin=mysql_native_password # this is not working restart: always environment: MYSQL_ROOT_PASSWORD: rootmypass ports: - '3306:3306' cache: image: redis environment: REDIS_HOST: localhost REDIS_PORT: 6379 ports: -…

VIEW QUESTION
Back To Top
Search