Move default database file to a directory (#145)

This commit is contained in:
Christopher C. Wells 2020-06-21 08:08:59 -07:00
parent df0b54b6c2
commit 3407afbf1b
2 changed files with 6 additions and 6 deletions

10
.gitignore vendored
View File

@ -2,9 +2,6 @@
.coverage .coverage
/htmlcov /htmlcov
# SQLite database file.
*.sqlite3
# Environment configuration file. # Environment configuration file.
.env .env
@ -23,8 +20,11 @@ docker-compose.yml
# Python files. # Python files.
*.pyc *.pyc
# App static file folders. # App static file directories.
/*/static /*/static
# Django media root folder. # Django media root directory.
/media /media
# Default sqlite database parent directory.
/data

View File

@ -101,7 +101,7 @@ TEMPLATES = [
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), 'NAME': os.path.join(BASE_DIR, 'data/db.sqlite3'),
} }
} }