# Adding a default .gitignore file when a django-project is initiated.

**URL:** <https://forum.djangoproject.com/t/adding-a-default-gitignore-file-when-a-django-project-is-initiated/37503>\
**Category:** Django Internals\
**Created:** [December 26, 2024, 7:46pm UTC](https://forum.djangoproject.com/t/adding-a-default-gitignore-file-when-a-django-project-is-initiated/37503 "2024-12-26T19:46:04Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![carltongibson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/carltongibson/32/267_2.png) [@carltongibson](https://forum.djangoproject.com/u/carltongibson)\
**Post date:** [January 9, 2025, 2:47pm UTC](https://forum.djangoproject.com/t/adding-a-default-gitignore-file-when-a-django-project-is-initiated/37503/21 "2025-01-09T14:47:50Z")

</div>

I already commented above that I think this should be unlocked by the DEP proposal to improve the startproject command. We can turn to that in the coming period.

> [@Adding a default .gitignore file when a django-project is initiated.](https://forum.djangoproject.com/t/adding-a-default-gitignore-file-when-a-django-project-is-initiated/37503/9):
>
> @tom has [a draft DEP in the works about improving the default template here](https://github.com/django/deps/pull/98) — the hope is (both) to improve the beginner story and let us be a bit more flexible with project templates. Having more fully featured examples with a .gitignore (and, from the thread on the Django-admin command, e.g. a pyproject.toml, say) should be something we can unlock. (I’m more interested in examples with less files personally, but I see the tension goes both ways.) Feedback on the PR there would be awesome! …

[Previous page](https://forum.djangoproject.com/t/adding-a-default-gitignore-file-when-a-django-project-is-initiated/37503.md?page=1)
