Skip to content

Commit

Permalink
Set media and static path as the same as in production
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix committed Feb 12, 2024
1 parent 998e0b5 commit ff0dc21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 = 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.
Expand All @@ -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",
Expand Down

0 comments on commit ff0dc21

Please sign in to comment.