title: How can I use filtered dropbox for my external database values
body: <p>I am learning Django to make a frontend for my python project where I need to create a credential form to make a connection with the database tool e.q. PostgreSQL that I have created. Now I want a dropdown to list all the databases available in my PostgreSQL and then another dropdown to list all schemas present in the selected database in the first dropdown and then another dropdown for tables present in the selected schema using the second dropdown.</p>
  
  <p>I have checked many videos for this but all are showing with the models. But I want these dropdown values from an external database not from models.</p>
  
  <p>I have tried to create a python file to create a form inside my Django app where I am using forms.ChoiceField to list the database values. But unable to get the selected value for of the dropdown. So that I can query the schemas</p>