Browse Source

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.
pull/149/head
Tobias Macey 7 years ago
parent
commit
0beb56e82a
No known key found for this signature in database GPG Key ID: D6260C616BD0FA33
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hc/settings.py

+ 1
- 1
hc/settings.py View File

@ -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…
Cancel
Save