Django Exercise 5: BlogPosts | Python Django Tutorials In Hindi #60

preview_player
Показать описание


Best Hindi Videos For Learning Programming:

Follow Me On Social Media
Рекомендации по теме
Комментарии
Автор

in views.py
from app import Blog


def index(request):
blog = Blog.object
return render(request, 'index.html')


In index.html
{% for i in blog.all %}
For Title
{{ i.title }}
{{ i.image.url }}
{% endfor %}


In urls.py
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
#url
] + static(settings.STATIC_URL,




in settings.py


STATIC_URL = '/media/'


STATIC_ROOT = os.path.join(BASE_DIR, 'path here')

itsmeaayush
Автор

This Django Course Is Very Informative On Entire YouTube.
Thanks To @CodeWithHarry Channel. ♥️

iamaniketkr
Автор

keep it up bro ai si hi video banate raho

dhairyakhemka
Автор

Will Try it in weekend.. cuz weeekend ko exam nahi hai

RohanDasRD
Автор

challenge accepted. It's very easy

manojkumarsingh
Автор

Sir checkout page pr every itme k liye delete button hona chahiye

manojkumarsingh
Автор

source code output image not displaying on website

naman
Автор

Bhai basic program ke videos nhi upload kr rhe ho tum

adarshkanojia
Автор

Challenge accepted and sir please check your Instagram Please sir

ankitsinghrawat
Автор

Challenge accepted.

* Vaise to sab kiye h par likh pehli bar ra hu😅

rheumaticharm
visit shbcf.ru