forked from GithubBackups/healthchecks
Added deterministic handling of sqlite database location
When running the migration command from outside of the application directory the sqlite database is created in the current working directory at the time of the command being executed. This commit updates the file path to be relative to the location of the settings file.
This commit is contained in:
parent
3efd70e50c
commit
0beb56e82a
@ -84,7 +84,7 @@ TEST_RUNNER = 'hc.api.tests.CustomRunner'
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': './hc.sqlite',
|
||||
'NAME': '{0}/hc.sqlite'.format(BASE_DIR),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user