[Answered ]-How to access a remote PostgreSQL database server (Read only transaction) in Django?

2👍

you need to make sure your sessions are not using databases (default). I would consider leaving the ‘default’ to a writeable databaes, then add a ‘readonly’ database connection as an alternative connection for the objects that you are accessing in it.

0👍

First your log says, you have migrations that’s not applied to the db you are connecting to, so fix it first.

Then I had success with the following in settings.py
SESSION_ENGINE="django.contrib.sessions.backends.cache"

👤eugene

Leave a comment