What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-21 14:43:03
managin media django
#in base url from django.conf import settings from django.conf.urls.static import static urlpatterns = [ # ... the rest of your URLconf goes here ... ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) #in setting MEDIA_ROOT = BASE_DIR ... Add solution -
Other 2021-09-04 01:36:02
managing media in django
#in base url from django.conf import settings from django.conf.urls.static import static urlpatterns = [ # ... the rest of your URLconf goes here ... ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) #in setting MEDIA_URL='/media/ M... Add solution