Answer the question
In order to leave comments, you need to log in
Do I need to commit the virtual environment?
Hello.
I'm learning web development with Django on my own.
The question arose: is there any point in tracking and synchronizing changes in the virtual environment folder, which is also present in the Django project folder? (it stores python and gunicorn).
Or do you need to configure the virtual environment separately on the local and remote servers and synchronize only changes in the project files?
Thank you.
Answer the question
In order to leave comments, you need to log in
roughly speaking, these are third-party dependencies, they should be excluded from the git.
so that you can then quickly deploy exactly those packages that you need, you can use the pip freeze command, which will generate a file with dependencies that you already need to store in git.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question