10/14/2019 - 12:42 AM

Set path to media/images

Set a path to your media/images directory in your django project

from django.contrib import admin
from django.urls import path
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

#Things to change in settings first:
#At end of settings file, add

MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'