Uploading images to Django templates.
Автор: Hardware 101
Загружено: 2019-08-08
Просмотров: 792
Описание:
How to upload images on a Django project.
Create a Static Directory like so ProjectName&static&ProjectName&Images
Then add images in Images folder. And then add your path in your html file like so:
'a href="https:&&wordpress.com&view&techstudents1.wordpress.com"''img src="{% static 'ProjectName&icons&wordpress.png' %" alt="so"a
That is it. This video is old and I was still learning hence the slowness etc. Just follow this written guide. The example above however does work. Just use the Project Name or App Name do not interchange them. Thanks. Angle brackets are not allowed on Youtube so had to improvise.
Here is CSS to go with it.
footer {
border-top: 1px solid #57b1dc;
text-align: center;
padding-top: 1em;
}
footer img {
width: 40px;
height: 40px;
margin-left: .5em;
margin-right: .5em;
}
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: