I am django beginner. When I code file upload, I don't understand this code
if settings.DEBUG: urlpatterns+=static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Why did we have to code if settings.DEBUG:?
if settings.DEBUG:
Aucun commentaire:
Enregistrer un commentaire