Skip to content

Commit

Permalink
concat FORCE_SCRIPT_NAME to MEDIA_URL and STATIC_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Grace-Amondi committed Jun 19, 2023
1 parent 9bb8e78 commit bfe1fe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nmhs_cms/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@
# See https://docs.djangoproject.com/en/4.0/ref/contrib/staticfiles/#manifeststaticfilesstorage
# STATICFILES_STORAGE = "django.contrib.staticfiles.storage.ManifestStaticFilesStorage"
STATIC_ROOT = os.path.join(BASE_DIR, "static")
STATIC_URL = "/static/"
STATIC_URL = os.getenv("FORCE_SCRIPT_NAME", "") + "/static/"

MEDIA_ROOT = os.path.join(BASE_DIR, "media")
MEDIA_URL = "/media/"
MEDIA_URL = os.getenv("FORCE_SCRIPT_NAME", "") + "/media/"

# Wagtail settings
# SITE_NAME="nmhs_cms"
Expand Down

0 comments on commit bfe1fe2

Please sign in to comment.