Static media images are not displaying in Django

models.ImageField – these are media files, not static. They get affected by settings: MEDIA_ROOT, MEDIA_URL What the docs say about MEDIA_ROOT: Absolute filesystem path to the directory that will hold user-uploaded files. Warning MEDIA_ROOT and STATIC_ROOT must have different values. And media files should not be mixed with static files in folders. Media files should … Read more

Django MEDIA_URL and MEDIA_ROOT

UPDATE for Django >= 1.7 Per Django 2.1 documentation: Serving files uploaded by a user during development from django.conf import settings from django.conf.urls.static import static urlpatterns = patterns(”, # … the rest of your URLconf goes here … ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) You no longer need if settings.DEBUG as Django will handle ensuring this is … Read more