I have been trying a lot of different commands but nothing seems to be working to Git ignore all the __pycache__ folders and their files in my project. I have written the following code in my .gitignore file and need help to ignore all __pycache__ in any subfolder of my Django project:
**/__pycache__/**
frontend_react_app/node_modules/
frontend_react_app/build
Thanks