• 2 months ago
During development, we often need to work with media files for various purposes. This video shows how to access media files during development.

In a production environment, a web server like Nginx or Apache is typically used to handle these files, which is more efficient and secure.
Transcript
00:00In this video, I will show how to access media files using the URL prefix in Django development mode.
00:15First, in my settings file, I need to specify the directory where I have the images.
00:30Here are my images.
00:39In the main URLs file, I have this special pattern used to serve media files during development.
01:02These settings are enough to access media files using the URL prefix.

Recommended