This is the correct placement for managing the project alone.
In addition to the django project, mysite
in this case, there are many other files that you would like to add, but you can always put them at the top of the directory you want to manage.
I will manage everything below .git.
.gitignore
You can download the .gitignore template for git management on a specified service from a service called gitignore.io.
Below is the django template
#Created by https://www.gitignore.io/api/linux,django
### Django###
*.log
*.pot
*.pyc
__pycache__/
local_settings.py
db.sqlite3
media
# If your build process includes running collectstatic, then...
© 2025 OneMinuteCode. All rights reserved.