Skip to content

Commit defe950

Browse files
committed
fixed to use solution already in main
1 parent fdd5597 commit defe950

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

server/api/settings.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,7 @@
149149
MEDIA_ROOT = BASE_DIR/"media"
150150

151151
# The url to serve images and other media
152-
if DEBUG:
153-
MEDIA_URL = "http://localhost:8000/media/"
154-
else:
155-
MEDIA_URL = f"https://{ALLOWED_HOSTS[0]}/media/"
152+
MEDIA_URL = "http://localhost:8000/media/"
156153

157154
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
158155

0 commit comments

Comments
 (0)