Python Django Tutorial: Full-Featured Web App Part 2 - Applications and Routes
In this Python Django Tutorial, we will be creating a blog application within our Django project. We will also learn how to create URL patterns that are handled by our application views. Let's get started...
The code for this series can be found at:
github.com/CoreyMSchafer/code...
✅ Support My Channel Through Patreon:
/ coreyms
✅ Become a Channel Member:
/ @coreyms
✅ One-Time Contribution Through PayPal:
goo.gl/649HFY
✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
✅ Corey's Public Amazon Wishlist
a.co/inIyro1
✅ Equipment I Use and Books I Recommend:
www.amazon.com/shop/coreyschafer
▶️ You Can Find Me On:
My Website - coreyms.com/
My Second Channel - / coreymschafer
Facebook - / coreymschafer
Twitter - / coreymschafer
Instagram - / coreymschafer
#Python #Django
Пікірлер: 833
11:44 to 13:21 is the absolute best explanation of how the urls navigate through the apps. I've struggled with this for so long and im finally getting it. THANKS!
@charlesokafor2930
5 жыл бұрын
very detailed explanation
@kiranpaithane3278
4 жыл бұрын
same here
@jakobfredriksson2272
3 жыл бұрын
Didn't noticed this (even though it's top ranked) post! That's why I gave lot of cred to the same part recently because it's such crucial part of Django's logic - logic Corey explains like a ninja; so * BEEEP * good =)
@dadveloper2326
3 жыл бұрын
This is the exact spot that I had a eureka! Thank you, Mr. Schafer!
@poodek
3 жыл бұрын
I have started similar Django course on different platform - came here to get Corey's explanation on routes, now I finally get it!
Loving the Django series. Corey Schafer has by far the best and understandable Python tutorials in KZread.
@aleisley5797
5 жыл бұрын
@VISHAL MISHRA Seems like you haven't installed django yet or there's some problem with your installation. Did you manage to get the django default page working when you run $ python manage.py runserver?
@jameskomo6465
5 жыл бұрын
@VISHAL MISHRA create a virtual environment and install django inside it
@tommyeagen3763
4 жыл бұрын
if u are a linux or mac user do like this : 1- open your terminal and go to any location you like 2- mkdir projectxx 3- cd projectxxx 4- virtualenv . 5- source bin/activate 6- pip install django after django gets installed it's a good practice to make an src folder and cd into it 7- django-admin startproject test . now you have everything u can manag.py as you please
@muhammadtalal8695
4 жыл бұрын
@@aleisley5797 agreed
@jackfrost8969
4 жыл бұрын
@Sultan King lmao it's the exact same reason why I ditched sentdex tutorials.
Tip for people watching this excellent course: Like me, you're probably not going to get everything straight away and might, like me, continue anyway. After all, trail and error is very effective for learning. But please, *make sure* to understand Corey's excellent explanation from around 11:45 to 13:40 about django's url patterns. Understand this, _what's actually happening_ in these three steps and _why_, and you will have a rather pleasant ride down the road. I didn't pay attention the first time and had big troubles with the logic later on and almost felt like "Django is indeed utter garbage!" but no, it's brilliant if you not like in my first encounter with this lesson sleepleared throughout 11:45 to 13:40 =)
@electricimpulsetoprogramming
3 жыл бұрын
love ya
@franciscogallegos4382
3 жыл бұрын
thanks!
Corey you are THE best person to learn from here on KZread. you are extremely concise and speak very well. I like that you run over the WHY of things. TOO many tutorials on YT don't let me know WHY something is happening and that's always where I get caught up. Thank you thank you!
@coreyms
4 жыл бұрын
Thanks!
Best explanation ever !!! Thank you. 1:02 - create an app 3:05 - view.py, HttpResponse 4:39 - create app url.py file 7:18 - modify project url.py file 16:25 - change route
I was confused by the url patterns and couldn't figure it out to save my life, but thanks to you, i get it. mad props as always!
With Corey's videos, I always assured that I will not miss any concept. He explains minor details in every video. Thanks!
The best explanation of url routing in youtube. I have tried 2 tutorials, but this guy explains like a champ. Great work. Please do continue the great work
This is the best KZread channel for learning Python course.Thank you Corey.
@msrbq
5 жыл бұрын
Code ?
@geolegacy2
4 жыл бұрын
Even the Indians agree lol
Went through multiple django tutorials and none of them are nearly as good as this. Thanks for loads of help my friend 🤙🏼
Wow! Have never understood urls just how much I got it all today!. Thank you Corey! You're the the BEST!
I just started the course today(3/7/22). I'll be posting as I go. So far, everything worked. Didn't run into any issues related to "out of date" content. I had a few typos, which caused some issues, but was able to resolve quickly. I'm a mac user and using VS code.
Not gonna lie, this guy is who you want to start learning with.
@nassimback
3 жыл бұрын
True i tried to learn from many Udemy paid courses and they suck :/
@navjotsingh2251
3 жыл бұрын
Nassim hmmm, some udemy courses are good. I have some good calculus courses and some good matlab programming courses. But I agree, there are more bad courses than there are good.
@pawlstothewall
3 жыл бұрын
Why would anybody ever lie about that?
@Alexander-re8vz
3 жыл бұрын
@@nassimback So true
@Alexander-re8vz
3 жыл бұрын
ik
I really appreciate you explaining the underlying concepts/actions of Django. Most other "tutorials" that I've watched/read have been nothing more than code-alongs with little to no explanation of what Django is actually doing.
I've watched like a million of your videos... whenever I want to know how to do something in Python, I'll go for your thumbnails first. You explain quickly enough not to be boring, while being slow enough for a dummy like me to follow, but still being in depth enough to get a really deep understanding of what's going on! Your tutorials are perfectly balanced! Thank you Corey Schafer... you're a legend. The only Python tutor KZread needs!
Coming from Flask, Django's URL scheme confused me to no end. This video not only made be understand it but also helped me to see the motivation behind why Django handles URLs the way it does. You are a gifted teacher.
I love how every time I find myself thinking "wow, this is a lot of information, going to need to rewind a bit", you seem to read my mind and you backpedal to re-explain.
This is one of the simplest examples that I have learned about Django Projects. Keep doing this Corey
Nice! Thanks Corey! I really like the way you slow down and explain how and why things are happening. It really helps me to understand Django
I've been scratching my head for weeks trying to figure out urls mapping. Nobody else describes it as well as you. Thanks!
This tutorial series is incredible!! Thank you so much. The production quality and pacing is second to none.
Every time I watch your videos, I always want to say: you are the best. So lucky have you teaching me.
I have been reading the docs for Django Corey, you really do have a talent for explaining these things in a way anyone can understand and in more detail too. Thank you!
I have tried a few other tutorials but idk how this guy explains it so simply. I don't even have to think about it again. You just make it settle in mind . Hats off champ :)
Two and a half years later and this is still working fine. So glad it's aged well as Corey is my go-to for everything Python. This is my second attempt. First time, I wasn't able to run the server from the command. If anyone has the same issue (and is using PyCharm), make sure you have set up your virtual environment with django (Pycharm -> settings -> python interpreter -> + (bottom left) -> (search: 'django') install package).
i learned django by myself and i was working on a website project in django but this urls mapping confused me a lot and i was about to give up on django but u give me hope to continue again, i seldom comment on YT videos but this django tutorial is the best and clear explanation about urls mappingi have ever seen on youtube thank u very very much Corey you saved me.
These videos are literally answering all the questions I have had this last week. Awesome tutorials!
best django tutorial series i have ever seen in youtube
Really enjoying this series. I've said this already but your tutorials for Python, for any topic you've posted on, are by far the best I've found. Thank you for providing these resources!
This is the best Django tutorial on youtube. Author speak fluently and explain everything in a very clear way. Brilliant job!
@chaitanyasai6313
4 жыл бұрын
96, in url_patterns raise ImproperlyConfigured(msg.format(name=self.urlconf_name)) django.core.exceptions.ImproperlyConfigured: 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. could you please solve my error
Thanks for this series. I just got a job as a front end developer but did not have any django background. This was so helpful. Thanks.
Man, you're such a good teacher ! Keep going, your classes are definitely one of the best in KZread !
Man, you are incredible. I regret i haven't found you before, but fortunately few days ago somebody recommended me your channel. Despite my english level isn't on advanced level i understand in major what you're talking about. You explain very clearly, and often anticipate my questions i so don't need to search in other sources. You're awesome, i regret i don't have such good teachers at my university. Thank you King!
I want to thank Corey for such amazing and well-explained tutorials, the content is way better than most of the paid courses out there. Thank you once again!
This is exactly what I was looking for! Clear explanations, nothing more complicated than it needs to be. Keep up the good work!
I would love to say you made best explanation of routes in django I ever seen, and I wonder how can someone dislike such an amazing tutorial, lastly thank you so much sir keep up the good work
The Python series was fab! Got me to understand stuff so easily! Also enjoying this series! Hope to binge watch it in 24hrs and fly through Django by tomorrow :)
I'll never understand these downvoters. This is the best Django tutorial on KZread.
this is so far the best tutorial videos for django. I was almost dropping Django for web development even though I like python very much. But when I came across this series of video, it gave me a U Turn. Thanks Corey.
I have spent so many hours trying to drill this info in my mind. Your explanations are so concise! such a logical flow to your explanation!
I have just discovered your channel, and it is fantastic. Thanks for your excellent teaching, and the excellent content. Very much appreciated.
Fantastic stuff! This is my second time around, and I now completely understand the basics of what's going on.
All of web development suddenly starts making sense to me. I am amazed by the quality of this channel and will try to support it!
So helpful and easy to follow. Thank you so much Corey, you are helping hundreds of thousands of people!
You deserve a Nobel Prize for teaching.
Oh the little things "in the same directory as out manage.py file", makes it some much easier to follow along and understand.
@ArkFreestyle
5 жыл бұрын
So true! I noticed that one too
@abdelrhmanahmed1378
3 жыл бұрын
what you mean?!
@HaileeMiu
3 жыл бұрын
@@abdelrhmanahmed1378 a lot of tutorial ppl are not clear enough on exactly where/what level things should be at. But they little phrase makes it crystal clear PLUS easy to remember
@DenzelHooke
3 жыл бұрын
how did this tutorial work out for you? Are you a dev now?
@HaileeMiu
3 жыл бұрын
@@DenzelHooke i was actually a software engineer at the time of watching this tutorial. My first job after a coding bootcamp
YEA! this guy is the best of all, which i've been watching, he knows how to and what to explain, pleasure to watch n learn! GJ, THX!
Corey Schafer offers the best tutorial. I have been struggling learning Django, now everything is flowing smoothly. Keep it up. Am happy.
Hey Corey Sir, Your videos are one of the best videos on the KZread. I've also watched your flask tutorials. It was also good. Your videos not only teaches how to do things but also why it works the way it is which most videos don't do. Thank You for making these videos.
It's been 3 years and this is still the most popular and comprehensive Django tutorial :')
Beautifully explained. I struggled with mapping URLs for days. Thank you, sir.
Love that there is an alternative to the regex requirement. Thanks, Corey.
Here we are in 2021 and this is still crazy good and super useful. The walk through of what's happening between module to module, is the high watermark of professional teaching. As you see those courses/videos to the right of this comment, safely ignore anything python related that is not from Corey.
Man you are amazing, i have never seen a single video with so clear, step by step explanation thumbs up
Love the series Corey, thank you very much for posting them!
You're a great teacher. I've recommended your videos to my friends. I am learning Django during this social distancing period. Thank you for all the content. Much appreciated.
@Alex-up5im
4 жыл бұрын
I am also learning Django during this period, I was just wondering if these tutorials still work for 2020? Corey seems like a great teacher so I hope these videos still hold up.
One of the great Python series on how to use Django framework!!
Fantastic video and walkthrough. After watching other videos and reading guides, it finally clicked with your explanation. Thank you so much!
Hey, I recently landed an internship at Amazon (hopefully I get full time by the end) and I wanted to thank you. During the interview, among several other things, I was also asked about Python generators as well as grep in Linux. Thanks to your videos on these, I was able to answer these 2 questions in great detail. Once my work begins I'll be able to contribute on Patreon. Until then I'll just like and share your videos :)
Thank you so much for this tutorial series! I've been programming for about 3 years now with c++ mostly and some python and c# among other things, and I recently got an idea for a web service that I think is great, but I've never done any web development. I have no doubt this series will teach me enough to get well on my way to developing said service.
Finally some good quality Django tutorials here! Thank you sir, very cool!
You are amazing. I have taken various online courses but none of them explained these concepts clearly. God Bless you :)
This was very clear...the light bulbs came on for me. Thank you so much!!!
Thanks Corey for your excellent play list on Django and other Python related series. You are my first choice to learn Python. Your contribution is really appreciated.
Pythons Best Teacher PERIOD... I mean explanations can't get clearer than this folks. AWESOME!
AMAZING AND CLEAR TUTORIALS WELL DONE COREY!!!
You are too good. You explain each and every thing why we are writing this line in our project and what it does for us. Thank you so for this awesome Django series ❤️.
What a amazing teacher you are....your way of teaching such a complex things in a easy way is amazing ...pllz carry on making such videos and many more
thanks corey you are my teacher and now i am thinking to start my channel i which i will try to teach the concepts i learn from you in my language
I have been trying to get this so many times but I couldn't, finally you did the magic and boom all clear, thank you so much for the hard work sir
This is guy is my favorite when it comes to python tutorials. Honestly dude life saver.
You are explaining each and every step....Loving your method of teaching...Thank You!!!
Thank you so much for this! Finally understanding django as my first framework
Hi, I have begun learning python with your channel. al your videos and playlist are just amazing and appreciate your efforts in making high-quality content a lot. After ending the python course, now I am trying to learn Django and build my own store
"About", "About" and "About" everywhere xD love the way you say "about". Very usefull tutorial!
Have to learn the django framework for my A2 Project and your tutorials are far easier to follow and better explained than the tutorials on their website! Good job.
U know what is the best thing which I experienced with Corey this series is actually when the question comes into my mind Corey Suddenly explains it really well ❤🔥
Corey: hey guys how it's going!!! Me (new to this channel): instantly subscribed...
Man, you explain very well and clearly, I understood everything, despite my relatively level of English, thank you
thank you so much for that routing explanation. I have been wrestling with this for a while, and your video made things very clear how things were working when a user accesses the site
Sixty-one dislikes... That's hilarious - how could anyone dislike this vid.? Corey, you are the first person I've run across who explained the pathway. Not understanding the path was what was stopping me. I can't thank you enough. It's the difference between memorizing a math formula versus being able to generate the formula from logic anytime you need it. I N S T A N T P A T R E O N ! ! ! ! ! ! ! ! ! ! ! ! !
fantastic video Corey. Explained so clearly! Thank you for making these videos!
This is a great video! Thank you so much for the help. I have been following a program I am enrolled in and I have been stuck on this topic for 2 weeks, just checked out this video and got it first time. thanks for the great work!!!!!!
This is the best tutorial I came across on the Django topic. All the concepts are clear and easy to understand
You're awesome! Thank you so much for this series! You are easy to understand and extremely helpful.
Your explanations are very clear. I look forward to watching the rest of the videos in your Django series :)
Thank you so much for working hard and explaining everything in a way so it is easy for me to understand. It is easy to follow along with the tutorial and I am now one step closer to making a great website. Thanks!
The recap done twice is underrated! Amazing job
Thanks Corey. I learned a lot from you. Sending love from the Philippines.
Such a good series! You make it so easy to learn Django! Thank You!
I like when i'm learning programming to not just copy a code , to play with!!! And u explained that well that i was able to do it!! Ty
@almatnarmatov
4 жыл бұрын
thats when youtube comes in play, you cannat copy text from video :D
This is my fourth time watching django tutorial video and I always end up getting confused on some vids and would just stop watching the vid lol But finally, I found your tutorial and you have explained each step and process clearly! Thank you so much Sir!
Excellent tutorial. Clear, concise and expertly described. Great job, thank you!
Thank you so much! You explain much better than teachers on paid courses
Great explanation! Watched many Django tutorials, videos, this is by far the best one!
I just finished another tutorial and started with yours, and realized that the other one was a scam. This is so so Good.
Thanks for making this tutorial, you made the concepts very clear and easy to understand.
This tutorial is the best !! this is what got me started in the web development 1 year ago
You're are an absolute LEGEND! Keep making more Django please if it is possible. It's awesome man!
awesome explanations ! very detailed and very clear. The link between views.py and url files is much clearer than in other tuts