title: Heroku: UserWarning: Using settings.DEBUG leads to a memory leak, never use this setting in production environments
body: <p>How do I use my production settings with heroku? This is my first attempt at any project deployment that I created ever, so I may be doing things completely wrong. I have a settings.py file and a settings_production file, but I can't seem to figure out how to get the production settings to work. I tried changing my manage.py from</p>
  
  <pre><code>"DJANGO_SETTINGS_MODULE", "myproject.settings"
  </code></pre>
  
  <p>to</p>
  
  <pre><code>"DJANGO_SETTINGS_MODULE", "myproject.settings_production"
  </code></pre>
  
  <p>then using the commands</p>
  
  <pre><code>git add .
  git commit -m "production settings"
  </code></pre>
  
  <p>and I have also just tried changing DEBUG to False in my settings.py file. How do you commit changes to your settings in heroku or point to the correct file? I was able to get through the tutorial successfully, but I have not had luck trying to deploy my project.  Also, should there be code that I add to manage.py that checks if it is a production or develop environment and uses the correct settings file accordingly, or do I manually change it? Still learning so I could be doing it completely wrong. Thanks for any help. </p>