This is the gitignore that I usally use, it may be addapted from project to project, use at your own risk.
- JetBrains IDEs & some plugins
- macOS stuff
- Python stuff - Byte-compiled, C, Packages & Installers, etc...
- Translations
- Django stuff - Logs, local, SQLite
- Flask stuff
- cache, temp and some local db's + other minor stuff
- other stuff