DEV Community

Pavel6625
Pavel6625

Posted on

1

Cannot use sessions when working with multiple databases

It seems impossible to use sessions in my configuration of multiple databases. For example, I always need to type username and password when I enter the admin site. How do I make sessions work?

I have two databases, one for each language:

# settings.py

DATABASES = {
    'default': {},
    'ru':

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs