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

cancel
Showing results for 
Search instead for 
Did you mean: 
nicolas_zim
Member II

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

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
Moderator
Moderator

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

Moved to the Content Services forum.

jpotts
Advanced II

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

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/