cancel
Showing results for 
Search instead for 
Did you mean: 

How to use multiple(identical) databases in django. Or set them after open homepage.

nicolas_zim
Champ in-the-making
Champ in-the-making

I need to set the database in an endpoint or before login, but i don't want set all the databases before in settings.py, because they have identical structure(and will be many databases to set).

  1. I think use local variable or set the database before an login, using endpoint, api or something like this would be a solution. 
  2. I am open to new ways to do it or an orientation to a solution. 

For now i'm setting the database settings in an .env file

2 REPLIES 2

dvuika
Star Collaborator
Star Collaborator

Moved to the Content Services forum.

jpotts
World-Class Innovator
World-Class Innovator

Many of us are fond of both Python and Django, but I think you've stumbled into the wrong place for your question. Alfresco is a Java based document management solution. It has nothing to do with Python or Django.

Maybe try someone over at https://www.djangoproject.com/