What is the best way to use git with Django?

时间:2015-07-28 15:47:54

标签: python django git

I'm starting with python and Django development and I'm creating a project that I want to share it with git. When I started the app I saw folders like "local", "lib", "bin", and "include". Should I ignore this folders or can I commit it? There's a .gitignore "master" to django files? I found some files on google but any of them mentioned this folders.

1 个答案:

答案 0 :(得分:2)

When doing Django development in Git you'll typically want to exclude *.db files, *.pyc files, your virtualenv directory, and whatever files your IDE and OS may create (eg: DS_store, *.swp, *.swo)