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 :-)
@codedjango3 жыл бұрын
YEs please....this is very convenient...thank you :)
@noblesavage1493 жыл бұрын
@0woled2 жыл бұрын
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 ! 😊
@CodeWithStein2 жыл бұрын
Great 😁 glad you liked it 👍🏻
@anon1.9.8.7.62 жыл бұрын
Thanks a lot for this! Easy to follow, great for beginners such as myself
@CodeWithStein2 жыл бұрын
Thanks! Glad to hear 😁
@rodrigomarcolino16472 жыл бұрын
Thanks for sharing this useful django project!
@CodeWithStein2 жыл бұрын
You’re welcome 😁😁
@andriakalandadze Жыл бұрын
Hello, can you tell me what is written in the first line at 1:39:46 ?
@CodeWithStein10 ай бұрын
Will check it out 👍🏻
@phillybruhhh73442 жыл бұрын
@ 1:53:53 I get an error ./bin/unicorn_start: 21: exec: ../bin/gunicorn: not found
@CodeWithStein2 жыл бұрын
Hey, did you install gunicorn using pip?
@phillybruhhh73442 жыл бұрын
@@CodeWithStein I did install it using pip. Does it matter if it says it's a read-only file?
@CodeWithStein2 жыл бұрын
Maybe it has to be writable. At least there are several other files/folders that needs to be 😉
@tolik27382 жыл бұрын
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!
@CodeWithStein2 жыл бұрын
Thank you so much for the feedback 😁😁
@sim9955 Жыл бұрын
this really really great! Thank you Stein! wondering, is there a way have a dark/light theme toggle?
@CodeWithStein Жыл бұрын
Hey, sure that is possible. Its a bit too much to explain here though. But search for tailwind + dark mode on Google ☺️
@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 Жыл бұрын
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-j5y27 күн бұрын
wonderful, thank you
@CodeWithStein23 күн бұрын
:-)
@mrj1997 Жыл бұрын
Awesome course, thank you
@CodeWithStein Жыл бұрын
Thanks 😁
@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 Жыл бұрын
Hey,are you sure there is content in that urls.py file?
@arun.sekher2 жыл бұрын
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.
@CodeWithStein2 жыл бұрын
Thanks for the feedback 😁 maybe, i will add this idea to my list 😁
@Johan875772 жыл бұрын
what is the benefit of using virtualenv package over python -m venv envname ?
@CodeWithStein2 жыл бұрын
It is more or less the same ☺️ venv is just a bit newer, so just stick with that 👍🏻
@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 Жыл бұрын
Hey, Thanks ☺️ I dont like heroku 🤷🏼♂️ and i didn’t think that deployment should be a part of a crash course 😉
@meowbyte4 Жыл бұрын
i dont have input box for comment. why?
@CodeWithStein Жыл бұрын
Hmm weird, then you’re probably missed something in the video 🤷🏼♂️
@mickaelrichard72553 жыл бұрын
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. :/
@CodeWithStein3 жыл бұрын
Hi, thanks for the tip! I'll add it to my list :-D
@tranlu_salelee34162 жыл бұрын
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.
@CodeWithStein2 жыл бұрын
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_salelee34162 жыл бұрын
@@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.
@karthigeyan882 жыл бұрын
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. :-)
@CodeWithStein2 жыл бұрын
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 Жыл бұрын
Hi , is this project east to deploy on heroku ?
@CodeWithStein Жыл бұрын
Hey, I have never tried Heroku. But this application is very basic, so I don't think there will be any problems :-)
@PureTheOne Жыл бұрын
@@CodeWithStein thank you , you're a good teacher 💯🔥
@marco8888-v3t Жыл бұрын
this is button
@CodeWithStein Жыл бұрын
Not quite sure what you mean with this comment? 🤷🏼♂️
@Zero-nh4ke3 жыл бұрын
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 ?
@CodeWithStein3 жыл бұрын
Never heard about the channel ;-)
@Zero-nh4ke3 жыл бұрын
@@CodeWithStein check this kzbin.info/www/bejne/sKu3ZJRtd6-rndk 😎 same teaching style as well 😀
@ahsin.shabbir2 жыл бұрын
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?
@CodeWithStein2 жыл бұрын
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 :-)
@iwilllearneverything2 жыл бұрын
hey man, how long does it take to learn python & django from scratch for web development? no prior programming knowledge except basic JS.
@CodeWithStein2 жыл бұрын
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
@juricapuljiz57382 жыл бұрын
How to make search bar return message for invalid or empty inputs as its not handled properly here?
@CodeWithStein2 жыл бұрын
Do a check in the backend somewhere, and use the messages framework to show it 👍🏻
@BananaPeelStudio0003 жыл бұрын
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).
@CodeWithStein3 жыл бұрын
Hi :-) The setup of the server doesn't have anything to do with windows. This is done on the servers of Digital Ocean ;-)
@tigreonice23392 жыл бұрын
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?
@CodeWithStein2 жыл бұрын
Hey, you can change to UploadField instead of ImageField to support pdf ;-)
@You_Create_shorts Жыл бұрын
template does not exist detail.html ??????????????????????
@CodeWithStein Жыл бұрын
Try restaring your server 👍🏻
@TahaExplains2 жыл бұрын
2:23 that only works for linux instructions not clear
@CodeWithStein2 жыл бұрын
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 :-)
@jakubturner80442 жыл бұрын
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...
@CodeWithStein2 жыл бұрын
Hey, do you have any specific questions/errors you’re stuck with? Feel free to join my discord to Get help from me there ☺️
@rabi73313 жыл бұрын
can i know why mine does not show bin like yours?
@CodeWithStein3 жыл бұрын
Hmm, are you on windows or mac?
@naazfatima9182 жыл бұрын
@@CodeWithStein im on windows and the source command doesn't work?
@CodeWithStein2 жыл бұрын
Hmm, I have no experience with Windows. Maybe you need to upgrade or similar? Try to Google Python virtualenv Windows ☺️
@rafaelll87862 жыл бұрын
@@naazfatima918 Change bin for Scripts, like "source name/Scripts/Activate"
@poasarpoar2 жыл бұрын
@@rafaelll8786 it doesnt work
@SuyogNepal-e9v10 ай бұрын
20:34 time stamp for me
@CodeWithStein10 ай бұрын
:-)
@yonrotem3402 жыл бұрын
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})
@CodeWithStein2 жыл бұрын
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
@nicksonokwemba17512 жыл бұрын
source codes please, some of us have short eyesight
@CodeWithStein2 жыл бұрын
There is a link in the description ☺️
@ibrahimoglu3 жыл бұрын
👍
@CodeWithStein3 жыл бұрын
:-)
@sabasiddika3 жыл бұрын
2nd view
@CodeWithStein3 жыл бұрын
Yeah :-D
@andreyshevchenko59253 жыл бұрын
+
@CodeWithStein3 жыл бұрын
☺️
@CoderPunchАй бұрын
2024 ?? lol
@johnmat-f7q2 ай бұрын
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
@CodeWithStein2 ай бұрын
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 😉