Add media files serving configuration for production

mailing
Razmig Sarkissian 1 month ago
parent d9c7a1ae4a
commit 9e9d476922
  1. 3
      padelclub_backend/urls.py

@ -48,3 +48,6 @@ def email_users_view(request):
# Serve media files in development
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += [
re_path(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}),
]

Loading…
Cancel
Save