Learn Django 3 - Media Uploads - Building a Simple Blog Series Part 4

preview_player
Показать описание
In this tutorials we learn how to further develop our simple blog by adding a media upload feature so that users can add images to their blog posts.

00:00 Introduction
00:15 What we have done so far & what we are about to create
02:36 New to the series - download the code and start a new virtual environment
07:35 Configure the model - add a new field and commit to database
09:45 Configure the URL so that we can view images on a local machine
11:02 Configure the templates to show images served from the media folder
13:42 Alternative configuration for media folder location (from Django documentation)
14:37 Creating a custom media folder structure / location for images

Code Repository (Part 3)

Code Repository

SUBSCRIBE to get more free tutorials, courses and code snippets!

Follow us on Facebook

Follow use on Twitter:
Рекомендации по теме
Комментарии
Автор

Nicely explained...keep up the good work

Luffy-hixw
Автор

Great tutorial! even tho I was not good at English, I could follow without any trouble!
I will recommend this for others who is struggling to figure out how to make a nested comment

yeonsungjin
Автор

It is great video and good explanation

antoniocampos
Автор

good sir, how to add pagination for CatListView(ListView) can u make video for that tq

venkatvenkatmanik
Автор

Very nice tutorial. Just a doubt; you said url configuration should be done if we are in localhost. What should be done once in production server? Does that line in urls.py be removed or replaced?

innovator