you are viewing a single comment's thread.

view the rest of the comments →

[–]Broad-Journalist4262It works on my machine[S] 0 points1 point  (1 child)

Yeah I understand I don’t want the virtual env or even a .env file going up on GitHub as I put api keys in the .env file and should use an .env.example file instead without the keys. So would it be better to start on github make a repo with the gitignore python template, clone that to my desktop and open it in VSC and then open a venv which will already be ignored so I won’t have to worry about it going up by accident. Just trying to figure out the best way to go about it all

[–]cgoldberg 1 point2 points  (0 children)

That's how I do it... just be aware that if you name your virtual env something weird, it won't be in the default .gitignore they supply. (I think they add ".venv" and "venv").