Working with image uploads in Django requires some configurations which are demonstrated in this video tutorial.
Previous video: • Python Django Tutorial - Managing St...
Django tutorial playlist: • Python Django Tutorial
====================
⭐️ Video Contents⭐️
⌨️ (0:00:00) Introduction
⌨️ (0:01:59) Installing Pillow third-party library
⌨️ (0:03:28) Creating media directory and its reference
⌨️ (0:06:02) Configuring URLs for media files
⌨️ (0:08:12) Updating blog post model
⌨️ (0:10:20) Adding header image to blog post views
⌨️ (0:12:25) Creating a blog post with a header image
⌨️ (0:16:08) Adding header image to blog article template
====================
Managing user-uploaded files: https://docs.djangoproject.com/en/4.1...
Pillow library: https://python-pillow.org/
Pillow on PyPI: https://pypi.org/project/Pillow/
Managing files in Django: https://docs.djangoproject.com/en/4.1...
====================
The code used in this series can be found at:
https://github.com/jkaris/my-demo-web...
====================
Reach me through:
My Website - https://josephkariuki.com/
Twitter - / jkariscodes
Instagram - / codekaraoke
#python #django #staticfiles #images