title: Django : How to access a localhost database hosted by a user?
body: <p>I want to develop a website (with it's own database) where all the users will host a tiny database on their computer (SQlite or mySQl). I need to find a way for the users to access their local database and work with it on the website.</p>
  
  <p>I read the docs concerning the multi-database (<a href="https://docs.djangoproject.com/en/dev/topics/db/multi-db/" rel="nofollow noreferrer">https://docs.djangoproject.com/en/dev/topics/db/multi-db/</a>) we can in the settings tell to django which database it needs to  connect to. </p>
  
  <p>For example :</p>
  
  <pre><code>DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql',
          'NAME': 'mydatabase',
          'USER': 'mydatabaseuser',
          'PASSWORD': 'mypassword',
          'HOST': '127.0.0.1',
          'PORT': '5432',
      }
  }
  </code></pre>
  
  <p>How to tell django to connect to the database hosted by the user ? I assume that 127.0.0.1 will refer to localhost of the django server. Am i right ?</p>