Serving the stored images
Next, to enable the server to serve the stored images, we have to add to /moviereviews/urls.py
the following:
… from django.conf.urls.static import static from django.conf import settings urlpatterns = [ … ] urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
With this, you can serve the static media from Django. Having configured the images, let's add our movie model to the admin panel.