vintasoftware / django-react-boilerplate

Django 5, React, Bootstrap 5 with Python 3 and Webpack project boilerplate
MIT License
1.97k stars 479 forks source link

Fix db.sqlite3 path on .gitignore #447

Closed vanessa closed 4 years ago

vanessa commented 4 years ago

Describe the bug We have db.sqlite3 on .gitignore but it points only to root, so when it's created by Django (on backend folder), it's not considered by .gitignore, thus it's added to the staged files.

To Reproduce

  1. Bootstrap the project without docker
  2. Run migrations (the db.sqlite3 file should be created at backend/ folder)
  3. Run git add . on root level
  4. Run git status | grep db.sqlite3
  5. Assert the file is added to staged files

Expected behavior db.sqlite3 not be added to staged files.

Solution Removing the slash at the beginning of db.sqlite3 on .gitignore fixes the issue.