title: How to find not used django settings
body: <p>In large project, settings file can be really huge. Sometimes after a few months of heavy development, it turns out that there are some variables in settings file, which are not used at all. This might happen after upgrading requirements, or just because someone forgot to remove setting after refactorization the code.</p>
  
  <p>It is very difficult, to check which variables are not needed, because this action requires not only searching through all project files, but also through sources of packages.</p>
  
  <p>Of course, even this not guarantee success, because always somewhere can be something like this: <code>getattr(settings, '%s_%s' % (app_name, important_setting))</code>... but this is another story.</p>
  
  <ol>
  <li>Is there any IDE/analyzing tool capable of detecting that?</li>
  <li>Is there a better way for checking this manually?</li>
  <li>What are the best practices, which helps avoiding this kind of situation</li>
  </ol>
  
  <p>The good news is, that in project on which I am working on we tests almost everything, so after a deleting a specific setting, I can run tests, and check if this broke something... but I don't think, that relying only on this tests a reasonable.</p>