0

I'm new to Django.

My project database architecture is like

Having 'Auth_DB' contains all the users login details.

Once user logged in, then in need to fetch the details from the other DB. Here i have databases for each user individually, like:

user_0001
user_0002
user_0003
user_0004
user_0005

Can any one please help how can i achieve this.

Thanks in Advance.

Willem Van Onsem
  • 443,496
  • 30
  • 428
  • 555
MadhuP
  • 2,019
  • 17
  • 22

1 Answers1

0

Followed Django multiple and dynamic databases

In summary, this is the process:

  1. Add the new database to settings (at runtime)
  2. Create a file to store these settings for reloading when the server is restarted (at runtime)
  3. Run a script which loads the saved settings files (whenever the server is restarted)
MadhuP
  • 2,019
  • 17
  • 22