From ff0dc21f7e1daab60394b8201a710b6a21594ca7 Mon Sep 17 00:00:00 2001 From: Lova ANDRIARIMALALA <43842786+Xpirix@users.noreply.github.com> Date: Mon, 12 Feb 2024 09:27:18 +0300 Subject: [PATCH] Set media and static path as the same as in production --- qgis-app/settings_docker.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qgis-app/settings_docker.py b/qgis-app/settings_docker.py index bb151b7f..7c4a23cd 100644 --- a/qgis-app/settings_docker.py +++ b/qgis-app/settings_docker.py @@ -12,7 +12,7 @@ # Absolute filesystem path to the directory that will hold user-uploaded files. # Example: "/var/www/example.com/media/" -MEDIA_ROOT = os.environ.get("MEDIA_ROOT", "/home/web/media") +MEDIA_ROOT = os.environ.get("MEDIA_ROOT", "/home/web/media/") # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash. @@ -25,11 +25,11 @@ # Don't put anything in this directory yourself; store your static files # in apps' "static/" subdirectories and in STATICFILES_DIRS. # Example: "/var/www/example.com/static/" -STATIC_ROOT = os.environ.get("STATIC_ROOT", "/home/web/static") +STATIC_ROOT = os.environ.get("STATIC_ROOT", "/home/web/static/static/") # URL prefix for static files. # Example: "http://example.com/static/", "http://static.example.com/" -STATIC_URL = "/static/" +STATIC_URL = "/static/static/" INSTALLED_APPS = [ "django.contrib.auth",