1) There are 2 models of Goods and Kartingistov
Kartingistov bound key one-to-many with products one product can have many images
So how to combine so that you can immediately add products with images in the admin?
2) I understand I create this code for each image its url
from django.conf import settings
from django.conf.urls.static import static
mapping includes = [
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
- the documentation says
"Helper function to return a URL pattern for serving files in debug mode
that is when I will throw in hosting and disable DEBUG
, this function will not work?