title: how to get django to read MySQL password from my.cnf?
body: <p>I have a .my.cnf file in my home directory so that, almost all the time, I can access my MySQL databases with just my username.</p>
  
  <p>However, in django, if I remove the password from the configuration in the settings.py, as seen below, the django app cannot access the database.</p>
  
  <pre><code>DATABASES = {
      'default': {
          'NAME': 'calaccess_raw',
          'PASSWORD': 'ZuperZekretPazzword',
          'ENGINE': 'django.db.backends.mysql',
          'USER': 'ray',
          'HOST': 'localhost',
          'PORT': '3306',
          'OPTIONS': {
              'local_infile': 1,
          }
      }
  }
  </code></pre>
  
  <p>It seems insecure that I need to put my password inside the settings.py file. These tend to be included in git repositories and such and it seems a bad idea.</p>
  
  <p>So, is there a way to get the python MySQL driver being used by django to use the standard my.cnf files?</p>