Build a Blog using Django, Python, and Bootstrap

preview_player
Показать описание
In this video we will build a blog using Django, Python, and Bootstrap. We will also add a rich text editor in the Django admin page to allow formatting of the blog posts. We will also use some basic mixins to limit permissions on the delete posts page. By the end of this tutorial, you will have created a complete project using Django.

Since the font got small for the terminal commands, here are the commands ran in the video to migrate changes to the database and run the server, please note that you might need to use python instead of python3 depending on how you installed Python:

Code For This Project:

Django:

Django Crispy Forms:

Django Bootstrap 5 Crispy Forms Template Pack:

Django TinyMCE:

Bootstrap:

Bootswatch:

Need an intro to Django?

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

Great tutorial mate!!, keep up the good work, and provide more knowledge to your community❤

dhanushs
Автор

You are an excellent educator and this is a great tutorial.

rogueDukakis
Автор

How would one implement photos into this for each blog?

dispatersdance
Автор

Thank you for this, really like the style! Could you show how only the blog post creator can view their blog unless the invite others? Also if you could show how to add htmx or alpine to this. =D

SkeechFab
Автор

Hello, my logout url is not working, even when I followed your procedures one after the other, I keep getting: Method Not Allowed: /accounts/logout/ "GET /accounts/logout/ HTTP/1.1" 405 0

muhammedabdulmalik
Автор

Also, every user shouldn't see the delete post, it should be restricted to only the users who are author as well, I would appreciate if you do an update to that. Secondly the blog_post page, the Go back button shouldn't go the index page, it should go back to the previous page before that, I think that need a fix up, and I would appreciate if you do that, cos I really really enjoyed your teaching. Please also emphasize more on the like and dislike functionality. Thanks ♥️

madukapaul
Автор

I have a trouble with moving to logout page, ive written urls and logout.html as in the video, but im getting a 405 error (method is not allowed)

ArseniiMets
Автор

Bro Add TimeStamps, Love Your Work <3

sadict._.
Автор

I would appreciate, if you explain d like and dislike functionality more.

madukapaul
Автор

Plz make blog api using rest framework

patcher
Автор

Thanks for this video, it really exposed me to a lot, but I would have loved if you wrote the else statement for (form.is_valid), for the user registration. I would appreciate if I get a link to an upgrade of that, I would also love to contact you. Thanks ♥️

madukapaul