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:
committed by
GitHub
parent
d75165e31a
commit
191f8823d4
+3
-1
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user