One question is if you also want to use git for the deploment of your projects. If so you probably would like to exclude your local sqlite file from the repository, same probably applies to file uploads (mostly in your media folder). (I'm talking about django now, since your question is also tagged with django)
发布评论
评论(6)
Github 有一个很棒的样板文件 .gitignore
Github has a great boilerplate .gitignore
使用 buildout 时,我在
.gitignore
中包含以下内容(以及*. pyo
和*.pyc
):感谢 Jacob Kaplan-Moss
另外,我倾向于放入
.svn
,因为我们在我工作的地方使用了多个 SCM-s。When using buildout I have following in
.gitignore
(along with*.pyo
and*.pyc
):Thanks to Jacob Kaplan-Moss
Also I tend to put
.svn
in since we use several SCM-s where I work.涵盖大部分常规内容 -
参考:python .gitignore
Covers most of the general stuff -
Reference: python .gitignore
local_settings.py,用于 django 项目。
*~ 适用于所有项目。
local_settings.py, for django projects.
*~ for all projects.
一个问题是您是否也想使用 git 来部署您的项目。如果是这样,您可能希望从存储库中排除本地 sqlite 文件,同样可能适用于文件上传(主要在您的媒体文件夹中)。 (我现在谈论的是 django,因为你的问题也被标记为 django)
One question is if you also want to use git for the deploment of your projects. If so you probably would like to exclude your local sqlite file from the repository, same probably applies to file uploads (mostly in your media folder). (I'm talking about django now, since your question is also tagged with django)
以下是安装工具可能留下的一些其他文件:
Here are some other files that may be left behind by setuptools: