Back to Browse

Quotes Board | Django project | Part 2

293 views
Jun 2, 2021
10:02

In this episode we are going to add images to our django project we have been building. So, watch the previous tutorial on Quotes board first as we continue coding from we already did. you need to install pillow first : pip install pillow It is required in Django to work with images. Then we need to add am ImageField to the Models.py and since we have made changes to our model, we need to 'makemigrations' and after that 'migrate' . Then we go to the settings and add some url and root directories for our media which will be included in urls.py as well. Next step is to inclue {% load static %} on top of our html file as we are going to load images, and then we include our images where we want.

Download

0 formats

No download links available.

Quotes Board | Django project | Part 2 | NatokHD