Saturday, December 12, 2015

Re: git exclude files

On Saturday, December 12, 2015 at 7:38:21 AM UTC-8, Gary Roach wrote:
Unfortunately, venv doesn't give me a choice as to where the files are stored. They are all under the top directory of the same name as the project but are actually in the same directory as the top level project folder. ie /root/archive/ venv files, and archive/ project. From what you say, they should not be included in the git source control.

I think the misunderstanding here is that you're thinking you should put your project code into the venv/virtualenv directory. That's not really how it's intended to be used. A typical setup might be:

~/virtualenvs/myproject
~/dev/myproject

When you activate myproject, the corresponding virtualenv is placed on your python path, so the libs it contains are available to you, and your pip installs end up there. But you do *your own* work in ~/dev/myproject. Complete separation of installed libs from your own project code. The question you're asking should never come up.

./s

 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/71e3a0b0-9ac4-4728-aca6-c1abd86f884a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment