Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Daniel (elordenador)
2026-05-04 12:32:16 +02:00
committed by GitHub
parent d75165e31a
commit 191f8823d4
+3 -1
View File
@@ -26,5 +26,7 @@ urlpatterns = [
path('tienda/', include('tienda.urls')) path('tienda/', include('tienda.urls'))
] ]
if settings.DEBUG and not settings.S3_ENABLE: if settings.DEBUG and (
not settings.S3_ENABLE or getattr(settings, 'S3_USE_LOCAL_URLS', False)
):
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)