Blog View and Template - Django Web Development with Python 7

preview_player
Показать описание
Welcome to Part 7 of our Django web development with Python tutorial.

Рекомендации по теме
Комментарии
Автор

You are So Cool and I Watch your a series Video for more than two month.I just want to say Thank you.From my bottom of my heart.

张树栋-hs
Автор

Bro, why i dont know but i feel safe on your channel :D

furkankaynar
Автор

Thanks for those tutorials. I started with no knowledge about django and feel like i actually understand how it works now!

Daidera
Автор

Harrison,

Your tutorials are awesome. I can actually understand the materiel without to many errors and can follow along. This is very helpful and I hope I can use this as a model to build real websites. Thanks.

bootcamprag
Автор

Hi @sentdex thank you so much for posting these tutorials. I wanted to
ask you one doubt. In the file "blog.html", there is a for loop :- "for
post in object_list" . Here, it will be returning the objects of the
class "Post" right?

So, what if we have another class in our models.py, say, class "Books".
Suppose we created a ListView in our urls.py file for this class too.
So now, in the "blog.html" file, will it create a conflict in the for
loop? I mean which class's objects will be returned by "objects_list",
in the for loop ( "for post in object_list")?

waynebrucewayne
Автор

Thank You Sentdex!! You save me from stress, headaches and above all, TIME

armanigiles
Автор

Thank you for investing in me. Regards, Sascha; The Netherlands.

svink
Автор

Thank you, very informative and easy to understand, i'm really exited about this, what is the plan for this series are you gonna stop with simple blog? i hope you go further because i cant get enough of your tutorials I'M HUNGRY!

Mjerjawi
Автор

Hi, @sentdex.. first of all thanks for the tutorials.
I have one doubt. Is is necessary to use object_list in the for loop. Can we name it something else.
And how is it magically getting data.

Thanks.

ankitagupta
Автор

I am sort of new to web development, but not programming. Django doesn't "look" like utilising MVC pattern, though it looks like views.py is/are actually controllers. And in this blog example, it seems there's no controller at all and, models and views are tightly coupled.

Great tutorials though!

ahsanshafiqchaudhry
Автор

Couldn't wait for this! Thanks. Following

techkenya
Автор

Thank you so much for making those tutorials, they are super helpful!

Though I didn't get why putting the ListView part in the urls.py instead of views.py?

wnsmuwc
Автор

Thanks for these great videos! I find them helpful! Keep it up! I look forward to checking our your machine learning vids!

skhaaaan
Автор

Hi i am getting this error when i follow this tutorial to the end:
Could not parse the remainder: ': "Y-m-d"' from 'post.date|date: "Y-m-d"'If i leave
|date: "Y-m-d"
off everything works. Any idea what i miss here?

Daidera
Автор

Your tutorials is awesome but for one who know django and want to review

أحمدمدحت-تض
Автор

Mr. Dex. I added imagefield in models, the problem is when i run the server "Operational Error"raises like :" No_Such Column found" Can you please help me with that?

KarthikRamurg
Автор

I'm getting an error "no such table: blog_post". Please help.

DevakaKumarasinghe
Автор

Can you execute straight SQL under Django, say join few DB table or some other complex query ?

ilanmagen
Автор

Could you please explain how Forms should work in Django?

gtxghost
Автор

Hi Sentdex,

thank you very much for your content it's very helpful.



I was wondering if you could also show:
How the admin can add images to each blog post
How to add a comment section to each blog post for users.


If anyone else knows the answer to this i would be very grateful.

thanks!

antoinefontaine