G
GitIgnore.pro
Back to Templates

Django .gitignore Template

Django project template

5K downloads
4.5/5.0
Updated 2024-01
.gitignore
33 lines

Using GitIgnore.pro fallback template because the official template was unavailable during generation.

# Django .gitignore template
# Generated by GitIgnore.pro

# Logs
*.log
logs/

# Dependencies
node_modules/
vendor/

# Build outputs
build/
dist/
out/

# Cache
.cache/
*.tmp

# Environment variables
.env
.env.local

# IDE
.vscode/
.idea/
*.swp
*.swo

# OS
.DS_Store
Thumbs.db

How to Use This Template

  1. Copy the template content above
  2. Create a new file named .gitignore in your project root
  3. Paste the content into the file
  4. Customize the patterns for your specific project needs
  5. Commit the .gitignore file to your repository

Django 部署清单

生成 Django 模板

集合虚拟环境、静态资源、Celery/Redis 的忽略规则。