Following Django Tutorial (Todo App)-Part6

This post will be about adding .gitignore and requirements.txt files.
Unlike 5 previous posts, it is not on the JustDjango Learn website free tutorial.
However, since I need to push to git and this project will be in public, I need those two files.

Still, JustDjango Learn website explains easily, so recommend to go to watch their videos.

1. .gitignore

  • .gitignore file specifies intentionally untracked files that git should ignore.
  • files already tracked by git are not affected
  • So, it is better to have and update gitignore file before.
  • of course, there are ways to untrack tracked files.
  • Create new file under project root folder name .gitignore
  • copy paste the above txt generated from toptal site.

2. requirements.txt

pip freeze > requirements.txt
  • you will see the requirements.txt file is automatically generated.