mirror of https://github.com/snachodog/mybuddy.git
Move default database file to a directory (#145)
This commit is contained in:
parent
df0b54b6c2
commit
3407afbf1b
|
@ -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
|
||||||
|
|
|
@ -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'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue