From bd643e2891a356f795b23ee5c2c137fd962aca02 Mon Sep 17 00:00:00 2001 From: creylopez Date: Thu, 16 Jan 2025 10:27:33 +0000 Subject: [PATCH] =?UTF-8?q?a=C3=B1ado=20static=20to=20urlpatterns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mysite/urls.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mysite/urls.py b/src/mysite/urls.py index 9c2418f..f7fc386 100644 --- a/src/mysite/urls.py +++ b/src/mysite/urls.py @@ -21,3 +21,6 @@ urlpatterns = [ path('polls/', include("polls.urls")), path('admin/', admin.site.urls), ] + +urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) +urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) \ No newline at end of file