Hi i'm quite confuse on this, on how to put static and media in urlpatterns at the same time, I already understand that static is for css/javascript while media is for the user upload file, since then if I use the {% static '<pathname>' %} in html file but i'm referring on the media not on the css/javascript, is there a conflict or how django will understand that i'm targeting the media one?
here is my urls.py
from django.conf import settings
from django.conf.urls.static import static
from django.urls import path
from .views import (
login,
signup,
)
urlpatterns = [
path('', login, name = 'login'),
path('signup/', signup, name = 'signup')
]
urlpatterns += static(settings.STATIC_URL, document_root = settings.STATICFILES_DIRS)
I already put the static and works perfectly but where I should but the media?