virtualenv best practice / source control

57 views
Skip to first unread message

junk

unread,
Oct 1, 2015, 8:21:57 AM10/1/15
to django...@googlegroups.com
Greetings wise django users,

Can someone provide a link or description of how to use virtualenv/django/source-control all at the same time?

I thought I would put my virtualenv code, and django, and a starter project in source control.  That was a fail - when the directories moved, nothing worked.

I changed some paths & symbolic links, and got some things working, but not everything.

Thanks everyone.

Regards,
Jody
-- 
This account is used for situtations where I believe SPAM may be sent to me.

Rafael E. Ferrero

unread,
Oct 1, 2015, 8:27:03 AM10/1/15
to django...@googlegroups.com

--
Rafael E. Ferrero

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/560D22F7.1020203%40cypressriverservices.com.
For more options, visit https://groups.google.com/d/optout.

graeme

unread,
Oct 1, 2015, 9:41:54 AM10/1/15
to Django users, ju...@cypressriverservices.com


On Thursday, October 1, 2015 at 5:51:57 PM UTC+5:30, junk wrote:
Greetings wise django users,

Can someone provide a link or description of how to use virtualenv/django/source-control all at the same time?

I thought I would put my virtualenv code, and django, and a starter project in source control.  That was a fail - when the directories moved, nothing worked.

I think it a lot better not to put the virtualenv in source control. All you really need is the requirements.txt in source control and it is fairly easy to set up a  virtualenv.

You can make a virtualenv relocatable, but even then it is likely to cause problems - it is certain to cause problems if it contains any C extensions and someone wants to clone the code on a different OS.  It also bloats your repository with a lot of code that is not specific to your project, and I see little benefit to doing it.
Reply all
Reply to author
Forward
0 new messages