title: Best practices for adding .gitignore file for Python projects?
body: <p>I'm trying to collect some of my default settings, and one thing I realized I don't have a standard for is .gitignore files. There's a great thread showing a <a href="https://stackoverflow.com/questions/2143956/gitignore-for-visual-studio-projects-and-solutions">good .gitignore for Visual Studio projects</a>, but I don't see many recommendations for Python and related tools (PyGTK, Django).</p>
  
  <p>So far, I have...</p>
  
  <pre><code>*.pyc
  *.pyo
  </code></pre>
  
  <p>...for the compiled objects and...</p>
  
  <pre><code>build/
  dist/
  </code></pre>
  
  <p>...for the setuptools output.</p>
  
  <p>What are some best practices for .gitignore files, and where can I go for more about these best practices?</p>