Skip to content

Commit

Permalink
Get MEDIA_URL and STATIC_URL from the environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix authored Feb 21, 2024
1 parent ff0dc21 commit 1794300
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 @@ -19,7 +19,7 @@
# Examples: "http://example.com/media/", "http://media.example.com/"
# MEDIA_URL = '/media/'
# setting full MEDIA_URL to be able to use it for the feeds
MEDIA_URL = "/media/"
MEDIA_URL = os.environ.get("MEDIA_URL", "/media/")

# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
Expand All @@ -29,7 +29,7 @@

# URL prefix for static files.
# Example: "http://example.com/static/", "http://static.example.com/"
STATIC_URL = "/static/static/"
STATIC_URL = os.environ.get("STATIC_URL", "/static/")

INSTALLED_APPS = [
"django.contrib.auth",
Expand Down

0 comments on commit 1794300

Please sign in to comment.