Skip to content

Instantly share code, notes, and snippets.

@5car1z
Created January 21, 2016 16:57
Show Gist options
  • Save 5car1z/2bd1ade7177fbccca339 to your computer and use it in GitHub Desktop.
Save 5car1z/2bd1ade7177fbccca339 to your computer and use it in GitHub Desktop.
Lengthy extensive .gitignore for Django / Python projects.
# Django Recommended
*.egg-info
*.pot
*.py[co]
__pycache__
MANIFEST
dist/
docs/_build/
docs/locale/
node_modules/
tests/coverage_html/
tests/.coverage
build/
tests/report/
# Sensitive Data
credentials.py
credentials.pyc
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
django-env/
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
assets/ # The directory set as STATIC_ROOT where Apache creates new static files on live web servers.
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/
# Translations
*.mo
*.pot
# Django
*.log
# Sphinx documentation
docs/_build/
# PyBuilder
target/
#Ipython Notebook
.ipynb_checkpoints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment