Browse Source

añado static to urlpatterns

main
creylopez 10 months ago
parent
commit
bd643e2891
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/mysite/urls.py

+ 3
- 0
src/mysite/urls.py View File

@ -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)

Loading…
Cancel
Save