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
|
||||
/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
|
||||
|
|
|
@ -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'),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue