Saturday, March 30, 2013

Re: django+virtualenv+git(hub)

1. You included pyc twice.

2. I don't see a need to add all subfolders. I've used to name virtual env's the same for each project, so you just add the it's name to gitignore.
Since my virtual env folder lives inside project folder they are not mixed up.

This way you don't make your .gitignore file messed up.

суббота, 30 марта 2013 г., 11:56:37 UTC+4 пользователь Martin написал:
Hi list,

I'm a Django newbie and have been reading of usefulness of using it with
virtualenv+git. I'm not clear however how to set it up in terms of
structure/hierarchy.

Say I've got my ~/projects/django-projects where I want to create my
projects so I'd initialise git inside ~/projects/django-projects. Then
I'd create separate virtual environments inside that adjusting
.gitignore to ignore things like:

*.pyc
.*swp

# Django files
include
lib
local
man
share
Scripts
.Python
*.pyc
*~
*.db


# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
 
# Installer logs
 pip-log.txt



Is that a recommended setup/logic?

Thank you

John

--
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 http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment