Jackson
Jackson
RRailway
Created by Jackson on 11/28/2023 in #✋|help
Django (Wagtail) Media Files
Thank you. That saved me a lot of time
15 replies
RRailway
Created by Jackson on 11/28/2023 in #✋|help
Django (Wagtail) Media Files
That was it! In settings set MEDIA_URL to RAILWAY_VOLUME_MOUNT_PATH and in urls.py set urlpatterns += [ re_path(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT})]
15 replies
RRailway
Created by Jackson on 11/28/2023 in #✋|help
Django (Wagtail) Media Files
Thanks. I wouldn't have thought to look at the repo. I'm deploying with new settings and urls now
15 replies
RRailway
Created by Jackson on 11/28/2023 in #✋|help
Django (Wagtail) Media Files
I've already visited that resource. I'll try the 'Troubleshooting' section though. I have yet to try making a new directory.
15 replies
RRailway
Created by Jackson on 11/28/2023 in #✋|help
Django (Wagtail) Media Files
I tried it after the server's attached volume didn't work. Thought maybe the volume attached to the database was the place.
15 replies