fix: torreta db point to folder

This commit is contained in:
Gerard Gascón 2025-04-11 21:36:53 +02:00
parent 9dbc2042c7
commit 93a756be78
2 changed files with 3 additions and 2 deletions

View file

@ -86,7 +86,7 @@ WSGI_APPLICATION = 'torretadeldrac.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
'NAME': os.getenv('DJANGO_DB_PATH', BASE_DIR / "db.sqlite3"),
}
}