Django Blog Application - Full Tutorial 2024

  Рет қаралды 38,204

Code With Stein

Code With Stein

Күн бұрын

Пікірлер: 95
@CodeWithStein
@CodeWithStein 3 жыл бұрын
This is the full version of my blog tutorial series. Many people have asked me to upload some of my series as a full video. And this is the first of them :-)
@codedjango
@codedjango 3 жыл бұрын
YEs please....this is very convenient...thank you :)
@noblesavage149
@noblesavage149 3 жыл бұрын
@0woled
@0woled 2 жыл бұрын
Hey Stein ! This will be the second project I'll be doing along for learning purposes. Wanted to thank you for taking the time and effort to share your knowledge. Greatly appreciated ! 😊
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Great 😁 glad you liked it 👍🏻
@anon1.9.8.7.6
@anon1.9.8.7.6 2 жыл бұрын
Thanks a lot for this! Easy to follow, great for beginners such as myself
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Thanks! Glad to hear 😁
@rodrigomarcolino1647
@rodrigomarcolino1647 2 жыл бұрын
Thanks for sharing this useful django project!
@CodeWithStein
@CodeWithStein 2 жыл бұрын
You’re welcome 😁😁
@andriakalandadze
@andriakalandadze Жыл бұрын
Hello, can you tell me what is written in the first line at 1:39:46 ?
@CodeWithStein
@CodeWithStein 10 ай бұрын
Will check it out 👍🏻
@phillybruhhh7344
@phillybruhhh7344 2 жыл бұрын
@ 1:53:53 I get an error ./bin/unicorn_start: 21: exec: ../bin/gunicorn: not found
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Hey, did you install gunicorn using pip?
@phillybruhhh7344
@phillybruhhh7344 2 жыл бұрын
@@CodeWithStein I did install it using pip. Does it matter if it says it's a read-only file?
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Maybe it has to be writable. At least there are several other files/folders that needs to be 😉
@tolik2738
@tolik2738 2 жыл бұрын
one of the most clear tutorials about django on KZbin😀 after watching this vidoe, it seems that i have better understanding about django, and can apply various concepts in my blog project Thank you very much teacher!
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Thank you so much for the feedback 😁😁
@sim9955
@sim9955 Жыл бұрын
this really really great! Thank you Stein! wondering, is there a way have a dark/light theme toggle?
@CodeWithStein
@CodeWithStein Жыл бұрын
Hey, sure that is possible. Its a bit too much to explain here though. But search for tailwind + dark mode on Google ☺️
@trevormadden4301
@trevormadden4301 Жыл бұрын
Hi Mr Stein.Thanks so much for your brilliant tutorial. Just started learning Django and it exactly what ive been looking for. Im just wondering how i could set up another grouping of posts like you have done with category. Say im building an art site and i want a link in the detail page with the name of the gallery under the post exactly like you have with category. i dont really want to use tags. it would help a lot with my learning about slugs and urls too.
@CodeWithStein
@CodeWithStein Жыл бұрын
Hey, Thanks for the feedback ☺️ its a bit much to explain here, so my suggestion is to keep practicing my tutorials and you will soon understand how to solve this ☺️
@OlafKoch-j5y
@OlafKoch-j5y 27 күн бұрын
wonderful, thank you
@CodeWithStein
@CodeWithStein 23 күн бұрын
:-)
@mrj1997
@mrj1997 Жыл бұрын
Awesome course, thank you
@CodeWithStein
@CodeWithStein Жыл бұрын
Thanks 😁
@miraclechinwe6262
@miraclechinwe6262 Жыл бұрын
The included URLconf '' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import. how can i fix this?
@CodeWithStein
@CodeWithStein Жыл бұрын
Hey,are you sure there is content in that urls.py file?
@arun.sekher
@arun.sekher 2 жыл бұрын
Thank you so much for this video. This has been enormously helpful for me to start learning Django. Could you create a video about setting up VSCode IDE for Django development featuring the plugins and settings that you use in VSCode. Thanks again.
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Thanks for the feedback 😁 maybe, i will add this idea to my list 😁
@Johan87577
@Johan87577 2 жыл бұрын
what is the benefit of using virtualenv package over python -m venv envname ?
@CodeWithStein
@CodeWithStein 2 жыл бұрын
It is more or less the same ☺️ venv is just a bit newer, so just stick with that 👍🏻
@AlfredOtieno-kh4dg
@AlfredOtieno-kh4dg Жыл бұрын
Stein, Thank You so much. However, I have a question, why didn't you use heroku or paid for webhosting to deploy your app to the internet?
@CodeWithStein
@CodeWithStein Жыл бұрын
Hey, Thanks ☺️ I dont like heroku 🤷🏼‍♂️ and i didn’t think that deployment should be a part of a crash course 😉
@meowbyte4
@meowbyte4 Жыл бұрын
i dont have input box for comment. why?
@CodeWithStein
@CodeWithStein Жыл бұрын
Hmm weird, then you’re probably missed something in the video 🤷🏼‍♂️
@mickaelrichard7255
@mickaelrichard7255 3 жыл бұрын
Amazing! Do you think in the futur you could make a tuto that focus on authentification and security with Django? Nobody make that kind of content even on udemy. :/
@CodeWithStein
@CodeWithStein 3 жыл бұрын
Hi, thanks for the tip! I'll add it to my list :-D
@tranlu_salelee3416
@tranlu_salelee3416 2 жыл бұрын
Top tutorial I have come across on youtube. Excellent job!. As a beginner, I learned so much from this tutorial I followed step by step and all successful and working....... I have encountered a problem though that is when click submit comment button; I get the NoReverseMatch error. Not sure what went wrong. I would be grateful if you could help.
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Hello! Thanks :-D Hmm, that sounds weird :s it's hard to say where there error is based on that error message. But it's most likely in the redirect after the comment is added ;-)
@tranlu_salelee3416
@tranlu_salelee3416 2 жыл бұрын
@@CodeWithStein That's correct. The error occurred when I inserted comment in the comment box then clicked submit button. I have multiple times looked at your tutorial for that segment. I followed every step correctly; I had an error, but you didn't.
@karthigeyan88
@karthigeyan88 2 жыл бұрын
Hello Stein, Hope you are doing good. After al long time, I completed this blog. It was really nice and thanks again for your effort. It would be good if you could add a video on disabling the copy command on the browser so user cannot copy any content from the blog. thanks in advance. :-)
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Hey, all good here 😁 how about there? Making it impossible to copy isn’t worth the effort in my opinion. If someone wants to copy, they will find a way 🤷🏼‍♂️ anyways, to prevent the typical right click/copy, you can use javascript ☺️
@PureTheOne
@PureTheOne Жыл бұрын
Hi , is this project east to deploy on heroku ?
@CodeWithStein
@CodeWithStein Жыл бұрын
Hey, I have never tried Heroku. But this application is very basic, so I don't think there will be any problems :-)
@PureTheOne
@PureTheOne Жыл бұрын
@@CodeWithStein thank you , you're a good teacher 💯🔥
@marco8888-v3t
@marco8888-v3t Жыл бұрын
this is button
@CodeWithStein
@CodeWithStein Жыл бұрын
Not quite sure what you mean with this comment? 🤷🏼‍♂️
@Zero-nh4ke
@Zero-nh4ke 3 жыл бұрын
Can I knw that smart contract programmer channel on KZbin is your channel sir ? your voice & smart contract programmer channel instructor voice is very similar little bit confuse is that your channel sir ?
@CodeWithStein
@CodeWithStein 3 жыл бұрын
Never heard about the channel ;-)
@Zero-nh4ke
@Zero-nh4ke 3 жыл бұрын
@@CodeWithStein check this kzbin.info/www/bejne/sKu3ZJRtd6-rndk 😎 same teaching style as well 😀
@ahsin.shabbir
@ahsin.shabbir 2 жыл бұрын
How do you add more posts that have styling in them? For example, code blocks in the post or headings and subheadings, images, audio, video, gifs, etc?
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Hey, it's a bit much to explain here in a comment how to solve this. But maybe the best solution is to set up a Wysiwyg editor? If you search on my channel you will find out how :-)
@iwilllearneverything
@iwilllearneverything 2 жыл бұрын
hey man, how long does it take to learn python & django from scratch for web development? no prior programming knowledge except basic JS.
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Hey, it depends on what you mean with "learn" django. You should be able to understand the basics and build simple things in a month or so. I have been using Django for many years, and I still learn :-) So it's always something new :-D
@juricapuljiz5738
@juricapuljiz5738 2 жыл бұрын
How to make search bar return message for invalid or empty inputs as its not handled properly here?
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Do a check in the backend somewhere, and use the messages framework to show it 👍🏻
@BananaPeelStudio000
@BananaPeelStudio000 3 жыл бұрын
Great tutorial first time using Django and you made it really easy to understand. I'm stuck on the last part about deploying it on a server . Would you have any tutorials to suggest on how to setup a server because I'm not sure what I have to do .(I'm using windows).
@CodeWithStein
@CodeWithStein 3 жыл бұрын
Hi :-) The setup of the server doesn't have anything to do with windows. This is done on the servers of Digital Ocean ;-)
@tigreonice2339
@tigreonice2339 2 жыл бұрын
How is it done that for the image it is with a jpg or png uploaded by the admin? And how also so that he can upload pdf?
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Hey, you can change to UploadField instead of ImageField to support pdf ;-)
@You_Create_shorts
@You_Create_shorts Жыл бұрын
template does not exist detail.html ??????????????????????
@CodeWithStein
@CodeWithStein Жыл бұрын
Try restaring your server 👍🏻
@TahaExplains
@TahaExplains 2 жыл бұрын
2:23 that only works for linux instructions not clear
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Ah, sorry. I don't have windows, so not sure how it's solved there :-s I know you can use virtualenv on windows as well, so just try to google it :-)
@jakubturner8044
@jakubturner8044 2 жыл бұрын
the part with server deploy is not really clear...there is a lot of copy-pasting stuff without explaining why you do that - which is not helpful when you need something debug. So I spent 4 hours doing that blog without the possibility of deploying that. Now I feel frustrated so I want to move on without result...
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Hey, do you have any specific questions/errors you’re stuck with? Feel free to join my discord to Get help from me there ☺️
@rabi7331
@rabi7331 3 жыл бұрын
can i know why mine does not show bin like yours?
@CodeWithStein
@CodeWithStein 3 жыл бұрын
Hmm, are you on windows or mac?
@naazfatima918
@naazfatima918 2 жыл бұрын
@@CodeWithStein im on windows and the source command doesn't work?
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Hmm, I have no experience with Windows. Maybe you need to upgrade or similar? Try to Google Python virtualenv Windows ☺️
@rafaelll8786
@rafaelll8786 2 жыл бұрын
@@naazfatima918 Change bin for Scripts, like "source name/Scripts/Activate"
@poasarpoar
@poasarpoar 2 жыл бұрын
@@rafaelll8786 it doesnt work
@SuyogNepal-e9v
@SuyogNepal-e9v 10 ай бұрын
20:34 time stamp for me
@CodeWithStein
@CodeWithStein 10 ай бұрын
:-)
@yonrotem340
@yonrotem340 2 жыл бұрын
The first hour of this has been great, but the second hour was a little rushed. Would a class Based view approach work with this blog? Also, for those who are experiencing the NoReverseMatch error, I troubleshooted the solution and this seems to have worked. Because we added 'category_slug', we need to let the "return redirect" in the detail function in 'views.py'/blog pass 'category_slug=category_slug' or else one of the arguments is not defined. The solution I have is: def detail(request, category_slug, slug): post = get_object_or_404(Post, slug=slug, status=Post.ACTIVE) if request.method == 'POST': form = CommentForm(request.POST) if form.is_valid(): comment = form.save(commit=False) comment.post = post comment.save() return redirect('post_detail', category_slug=category_slug, slug=slug) else: form = CommentForm() return render(request, 'blog/detail.html', {'post': post, 'form': form})
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Hey, class based views can be used for everything (almost) a function based view can. A typical approach to this is to use classes where they make sense (not much customizations and similar), and function based views everywhere else. Or you can do as me, just use functions for everything (which is also normal) :-D
@nicksonokwemba1751
@nicksonokwemba1751 2 жыл бұрын
source codes please, some of us have short eyesight
@CodeWithStein
@CodeWithStein 2 жыл бұрын
There is a link in the description ☺️
@ibrahimoglu
@ibrahimoglu 3 жыл бұрын
👍
@CodeWithStein
@CodeWithStein 3 жыл бұрын
:-)
@sabasiddika
@sabasiddika 3 жыл бұрын
2nd view
@CodeWithStein
@CodeWithStein 3 жыл бұрын
Yeah :-D
@andreyshevchenko5925
@andreyshevchenko5925 3 жыл бұрын
+
@CodeWithStein
@CodeWithStein 3 жыл бұрын
☺️
@CoderPunch
@CoderPunch Ай бұрын
2024 ?? lol
@johnmat-f7q
@johnmat-f7q 2 ай бұрын
you really dont know how to teach a beginner how do you expect a beginner to understand you with too much of options in it
@CodeWithStein
@CodeWithStein 2 ай бұрын
Thanks for the feedback ☺️ i like to teach the same way I like to learn. It is not for everybode. Luckily, there are many others like @DennisIvy 😉
Python Django Web Framework - Full Course for Beginners
3:45:41
freeCodeCamp.org
Рет қаралды 4,8 МЛН
Django - What is Blank and Null? #shorts
0:44
Code With Stein
Рет қаралды 2 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Python Django Blog In Less Than 20 Minutes - Blogging website tutorial
22:33
Python Django 7 Hour Course
7:10:05
Traversy Media
Рет қаралды 1,8 МЛН
Django Project - Building A Link Rating Website - Django Tutorial
1:07:49
Code With Stein
Рет қаралды 1,7 М.
Build a Django REST API with the Django Rest Framework. Complete Tutorial.
7:01:40
Django For Beginners - Full Tutorial
3:13:54
Tech With Tim
Рет қаралды 673 М.
Django To Do List App With User Registration & Login
2:12:03
Dennis Ivy
Рет қаралды 343 М.
How To Become A Web Developer In 2025
5:42
Code With Stein
Рет қаралды 804
CRUD mastery with Django | Build a CRM application | Django projects | #1
4:22:07
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН