1# Required Imports
2from django.conf.urls.static import static
3from django.conf import settings
4
5# Below Urlpatterns
6if settings.DEBUG:
7 urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
8 urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)