diff --git a/.gitignore b/.gitignore index 6194c5a9..8e297c88 100644 --- a/.gitignore +++ b/.gitignore @@ -2,9 +2,6 @@ .coverage /htmlcov -# SQLite database file. -*.sqlite3 - # Environment configuration file. .env @@ -23,8 +20,11 @@ docker-compose.yml # Python files. *.pyc -# App static file folders. +# App static file directories. /*/static -# Django media root folder. +# Django media root directory. /media + +# Default sqlite database parent directory. +/data diff --git a/babybuddy/settings/base.py b/babybuddy/settings/base.py index fafcca22..f86275a8 100644 --- a/babybuddy/settings/base.py +++ b/babybuddy/settings/base.py @@ -101,7 +101,7 @@ TEMPLATES = [ DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + 'NAME': os.path.join(BASE_DIR, 'data/db.sqlite3'), } }