Skip to content

Commit

Permalink
Get static and media root from the environments (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix authored Jan 31, 2024
1 parent c2b9c13 commit a4621f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qgis-app/settings_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/var/www/example.com/media/"
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.
Expand All @@ -25,7 +25,7 @@
# 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 = "/home/web/static"
STATIC_ROOT = os.environ.get("STATIC_ROOT", "/home/web/static")

# URL prefix for static files.
# Example: "http://example.com/static/", "http://static.example.com/"
Expand Down

0 comments on commit a4621f0

Please sign in to comment.