R
R
Roma Zvarich2015-10-05 00:18:46
git
Roma Zvarich, 2015-10-05 00:18:46

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

1 answer(s)
S
Sergey, 2015-10-05
@hisbvdis

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 question

Ask a Question

731 491 924 answers to any question