Skip to content

Commit

Permalink
Make MEDIA_URL configurable (#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorgomezv authored Aug 7, 2023
1 parent eb7101d commit c2d474c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
# https://docs.djangoproject.com/en/dev/ref/settings/#media-root
MEDIA_ROOT = f"{BASE_DIR}/media/"
# https://docs.djangoproject.com/en/dev/ref/settings/#media-url
MEDIA_URL = "/media/"
MEDIA_URL = os.getenv("MEDIA_URL", "/media/")

AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID")
AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY")
Expand Down

0 comments on commit c2d474c

Please sign in to comment.