diff --git a/app/moneropro/settings.py b/app/moneropro/settings.py index 8f6ec9d..d3a8230 100644 --- a/app/moneropro/settings.py +++ b/app/moneropro/settings.py @@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/3.1/ref/settings/ """ import os +import shutil from pathlib import Path # Necessary for assynchronous django @@ -98,7 +99,7 @@ WSGI_APPLICATION = "moneropro.wsgi.application" opt_path = Path("/opt/db.sqlite3") if opt_path.exists(): - opt_path.rename(BASE_DIR / "db.sqlite3") + shutil.move(opt_path, BASE_DIR / "db.sqlite3") DATABASES = { "default": {