URLS and Views | Django Framework (3.0) Crash Course Tutorials (pt 2)

  Рет қаралды 206,496

Dennis Ivy

Dennis Ivy

Күн бұрын

Check out my Complete Django course! dub.sh/NvGboTI
NOTE: Updated and compatible with Django 3.0
Django URL routing and views introduction. Part 2 of my django crash course series.
Follow me on Twitter: / dennisivy11
Linkedin: / dennis-ivanov
Source code: github.com/div...

Пікірлер: 146
@DennisIvy
@DennisIvy Ай бұрын
Don't forget to check out my Complete Django course! dub.sh/NvGboTI
@isaacmukama5265
@isaacmukama5265 4 жыл бұрын
I had almost given up on django because the tutorials weren't clear until i met this guy. You are God sent
@DennisIvy
@DennisIvy 4 жыл бұрын
These comments and your progress is why I do this :) Thank you for your feedback. keep me updated on how things go.
@NoCSDegree
@NoCSDegree 4 жыл бұрын
yes, thank god!
@mohcench1903
@mohcench1903 4 жыл бұрын
me too :)
@viveknamaye4669
@viveknamaye4669 3 жыл бұрын
Same here lol,,😂
@shahaburcse8006
@shahaburcse8006 3 жыл бұрын
U r amazing teacher Dennis
@geetcyberlab5108
@geetcyberlab5108 4 жыл бұрын
My ooooh my, Where have you been all my life?.... finally i understood the basic of django url routing. you the best pls dont stop this good work of this ministry please fire on!!!....
@DennisIvy
@DennisIvy 4 жыл бұрын
Haha thanks! So glad I could simplify the concept for you :)
@theblackelephant
@theblackelephant 2 жыл бұрын
@@DennisIvy You are the guy what speaks knowledge practically. You saved us alot alot***100000000000
@SantiagoJFontenla
@SantiagoJFontenla 4 жыл бұрын
i can see how you struggled while learning all of this and now you are able to explain in it the correct way... because was struggling until i found you now. Thank you, appreciate it
@roypdxful
@roypdxful 4 жыл бұрын
I've been a hardware C and C++ developer my entire life. I've been dabbling Python and Django, and was looking for a clear tutorial. I looked at Udemy and nothing was worthwhile, it was either outdated or didn't use a real-world example. Your tutorial perfect for a beginner and a experience developer. Thanks so much for taking the time out of your life to make this series!
@doniyorabduvokhidov1706
@doniyorabduvokhidov1706 4 жыл бұрын
Because i have somehow basic knowledge about Django and did some practice ,this tutorial makes sense. But i am 100% sure i wouldnt understand what was going on if i was complete beginner. This is good for the ones who have some prior knowledge. Thank you Dennis.. I am really grateful for these tutorials.
@fedorstepanov3731
@fedorstepanov3731 4 жыл бұрын
Can you recommend any tutorials for absolutely beginners ?
@doniyorabduvokhidov1706
@doniyorabduvokhidov1706 4 жыл бұрын
Corey Schafer Django Series
@vocartagmailcom
@vocartagmailcom 4 жыл бұрын
Exactly... I had zero knowledge about Django and it was painful:D Usually I watched everything 2-3 times pausing when he wrote to fast to copy it... And finally I had to stop at pt 11 and make a html course because it was to scary what is going on around. Now I watch it the third time from the beginning, I start to understand how it works...:D
@louismefor9539
@louismefor9539 4 жыл бұрын
If most lecturers were like this guy!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!, GENIUS!!!!!!!!!!!!!!!!!
@devanshbansal3130
@devanshbansal3130 4 жыл бұрын
Not even the top courses on YT make things this clear. Glad I found this challenge.
@josephlasan387
@josephlasan387 6 ай бұрын
I was going over books and some other videos on YT just to get the concept but getting nowhere. But this guy has nailed it. Thank you.
@mycode0
@mycode0 3 жыл бұрын
Definitely the only youtuber that actually explains the concept behind the technology
@thomasedwardking7286
@thomasedwardking7286 11 ай бұрын
This is by far the most accessible video I have found explaining Django. Just a real nice perfect pace for someone wanting to get the handle on the jandle. Thanks so much 🙏
@prabalrawal6079
@prabalrawal6079 3 жыл бұрын
This is the best one in youtube, I searched a lot and was not able to understand untill this one. Thaks Dennis
@eji7552
@eji7552 3 жыл бұрын
I SPENT AN ENTIRE DAY TRYING TO FIGURE IT OUT! IN A FEW MINUTES U SOLVED MY PROBLEM, U ARE A GENIOUS, I'D KISS U ON UR LIPS RN! NGL! Serious note, ty so much!
@NOTHING-en2ue
@NOTHING-en2ue Жыл бұрын
the best teacher of Django, thanks a lot ❤
@petecodes
@petecodes 4 жыл бұрын
Thank you! all the videos now use out of date syntax for django so finally I have it working!
@kuwingderazen7539
@kuwingderazen7539 3 жыл бұрын
thank you finally i understood the basic django url routing.
@Furqangamerpk
@Furqangamerpk 3 жыл бұрын
I never commented on any video but this is awesoooooooooooooooooooomee!!!!!!!!!!!
@JohnnysaidWhat
@JohnnysaidWhat 4 жыл бұрын
In your accounts urls file remember there is a third argument to path which is a name you can associate to that path. If you have any anchor tags that use this url it will allow you to use a special url template tag function. Basically if the url ever changes in your url file it will change automatically for you in the templates. Just a quick tip not sure if this is covered in later videos!
@DennisIvy
@DennisIvy 4 жыл бұрын
Thank you john :) Yea I get to that in a later video. Just tried to keep it as simple as possible and progress as the course goes on.
@kazishafin1
@kazishafin1 3 жыл бұрын
Best Django tutorial on KZbin.
@meiir24
@meiir24 2 жыл бұрын
Wooow, really clear! Thanks God! I thought Django is for elected people before I meet this course! Wish you all the best, man!
@pinakastra
@pinakastra 3 жыл бұрын
Dude I like your videos before they start to play. That's how much trust you've built in just one video. Kudos bud.
@DennisIvy
@DennisIvy 3 жыл бұрын
Thank you Vivek! I really appreciate that
@noorzaibchohan1200
@noorzaibchohan1200 11 ай бұрын
well explained Dennis. you are saving our precious time for learning Django.
@w3Develops
@w3Develops 3 жыл бұрын
This tutorial is really helpful. SUPER grateful I found Mr. Ivy's channel.
@theblackelephant
@theblackelephant 2 жыл бұрын
Hi Dennis Ivy I wanna thank you alot. I really mean ALOT without your clear explanation I would be giving up on Django. Once again thanks.
@rutviktak716
@rutviktak716 4 жыл бұрын
Dude,ur explanation is just perfect and understood everything clearly in the first go😊
@MuhammadMahirQ8
@MuhammadMahirQ8 4 жыл бұрын
Where were you before dennis.. Just loved the content and the project. Need more from you. I'd love to see a how would one make an app such as this CRM into an API based project. I don't think any other does have such tutorial and I am pretty sure its demanding
@DennisIvy
@DennisIvy 4 жыл бұрын
Thank you Muhammad! I'll be created a rest API crash course soon and then some projects that will reply heavily on it.
@brightnwachukwu7581
@brightnwachukwu7581 4 жыл бұрын
@@DennisIvy hello dennis. a quick question.. why did you use "return HttpResponse" instead of "'return render" in the views section under the function
@happybuttonquail9603
@happybuttonquail9603 4 жыл бұрын
You are a god send, perfect tutorials!! Everything was clear and I was able to follow along without being confused.
@DennisIvy
@DennisIvy 4 жыл бұрын
Haha thank you Annie ! Glad it was simple enough :)
@drop_messages6226
@drop_messages6226 4 жыл бұрын
Thank you. I appreciate that you make the source code available, that alone earned you a subscriber.
@adhirajmajumder
@adhirajmajumder 4 жыл бұрын
Wow you're the best Django Instructor
@rutviktak716
@rutviktak716 4 жыл бұрын
just started django and i hope this tutorial will explain everything clearly
@subijoyacharya3189
@subijoyacharya3189 3 жыл бұрын
Hi Dennis, I love the way you explained using paint. I really the preparation you took to explain to us.
@laurscode5778
@laurscode5778 3 жыл бұрын
i was close to left learning Django before i found these tutorials.Thx so much for really good information ,explained in a really cool way)
@justalone1549
@justalone1549 2 жыл бұрын
oh man that's COOL course for all the time
@track_talesblitz6402
@track_talesblitz6402 4 жыл бұрын
Thank you so much for these information... From last 1 week i made 2 apps and watched 2 series as well as documentations.... No one explained like yo did... Great job 👍
@wuajaz91
@wuajaz91 3 жыл бұрын
it was so good idea to split explanation of the whole project into smaller pieces, really appreciate for your hard work. :)
@fernandoflores3728
@fernandoflores3728 3 жыл бұрын
I was looking for a web app development framework to learn from scratch, I have some Python experience and no JS background, anyway, I was confused due everyone says, for any web app development you should know JS, now I know Python & Django is my path learning, Thanks for your videos!
@ebenezersiaw935
@ebenezersiaw935 3 жыл бұрын
Dennis your tutorials are awesome
@aleemhakim
@aleemhakim Жыл бұрын
This actually made alot of sense and tbvh I already know django a bit but this made it much easier Thank you :)
@KeyserTheRedBeard
@KeyserTheRedBeard 2 жыл бұрын
brilliant content Dennis Ivy. I killed that thumbs up on your video. Keep up the high-quality work.
@saralafandi2575
@saralafandi2575 4 жыл бұрын
Yoo man you are the best i finally understood the basic of django ! perfect tutorials THANK YOUU
@aggieaggie3946
@aggieaggie3946 3 жыл бұрын
Thank you so much, you have really simplified life for me
@martahackerman1007
@martahackerman1007 3 жыл бұрын
Thanks a lot! You are doing great job! Brilliant Tutorial!!! I like a lot url/fuctions/ template scheme, it makes clear how the Django is organised.
@mohdeshtiwi629
@mohdeshtiwi629 4 жыл бұрын
wow man where you were before 3 days thanks a lots. I love you
@aaaa11121
@aaaa11121 3 жыл бұрын
Круто спасибо Денис!
@julianbazanaguirre8439
@julianbazanaguirre8439 4 жыл бұрын
Hi, so far enjoying the first video and excited about this one. I have one question: I don't know if you are going to cover it later in the videos: Do you use virtual environment to run all the python commands and django and other features? I saw that this is the recommended way in the Django Documentation as well as in other tutorials I have found out in the internet. Thanks dude for all the effort, thought and intelligence put in these videos.
@julianbazanaguirre8439
@julianbazanaguirre8439 4 жыл бұрын
AWESOME, yesterday I went from video 1 to 6 during the whole day, trying to really grasp the knowledge, transcribing everything, also the html and css file to try to understand what is going on. I went through the videos once again today, and I am pretty confident about how to start a new project, new app, set the routings. Thanks a lot!
@seshiria_4290
@seshiria_4290 Жыл бұрын
@@julianbazanaguirre8439 Nice, keep it up!
@youcef659
@youcef659 4 жыл бұрын
i haven't watched the entire playlist but i think you deserve more subscribers Good luck
@garrettohara5873
@garrettohara5873 2 жыл бұрын
Great content. Exaclty what I needed to organize my app for scale.
@modernmistyk4341
@modernmistyk4341 2 жыл бұрын
Thank you so much for your help, you are a saint
@jamesdean3787
@jamesdean3787 3 жыл бұрын
well explained ... very clear and concise. thank you!
@astrophotographyenthusiast5273
@astrophotographyenthusiast5273 3 жыл бұрын
Thanks for this man! Keep up the hard work.
@hakimled4300
@hakimled4300 4 жыл бұрын
thank you for your tutorial which is based on django 3 could you please make a tutorial how to upload and resize big pictures using the pillow module , how to save the path in database and how to delete the corresponding image
@husmbergtwo668
@husmbergtwo668 3 жыл бұрын
thanks plz keep in thus way
@johnherrera5913
@johnherrera5913 4 жыл бұрын
Thanks for your videos man. Greets from Colombia.
@Mr_MicDaniel
@Mr_MicDaniel 3 жыл бұрын
Thanks for this course I trust it will be great, I have 2 questions 1. Can I use any IDE of my choice like Spyder? 2. How do run sublime text Code?
@charanpasupula3763
@charanpasupula3763 4 жыл бұрын
That was clean explanation. Thank you
@fkmyoutube
@fkmyoutube 4 жыл бұрын
Why didn't see I see this video earlier. I understand your explanation. Whereas my paid Udemy course didn't explain as good as you.
@hansalexander1051
@hansalexander1051 4 жыл бұрын
Best tutorial so far.. thanks bro
@davidbrown2806
@davidbrown2806 4 жыл бұрын
I think that it is important to demonstrate VCS when ever there is a lengthly presentation like this. Something always goes wrong and we all need to learn and practice recovering from those situations, and also what django files should be included in the .gitignore file.
@kate_chengdu
@kate_chengdu 3 жыл бұрын
great course!
@MohamedelAmine
@MohamedelAmine 4 жыл бұрын
thank you
@DennisIvy
@DennisIvy 4 жыл бұрын
My pleasure :)
@nyashazivanai6902
@nyashazivanai6902 3 жыл бұрын
this is very clear and very understandable thank you, but why did you use different URL pages, and how does it really benefit
@banaras.wala.foreignaala
@banaras.wala.foreignaala 4 жыл бұрын
Hi, I am loving it.
@datahead_girl
@datahead_girl 3 жыл бұрын
I love your videos! :)
@kamaleshpramanik7645
@kamaleshpramanik7645 3 жыл бұрын
awesome .. thank you very much.
@Alliswelltoday
@Alliswelltoday 4 жыл бұрын
love you bro , please make similar videos for REST APIS
@RodriMaxTV
@RodriMaxTV 4 жыл бұрын
Whatdoes the from . Import means ? like that dot ...
@DennisIvy
@DennisIvy 4 жыл бұрын
"from . import views" This means import the views file that is in the same directory.
@peachperion
@peachperion Жыл бұрын
Bless you
@colepower22
@colepower22 4 жыл бұрын
I have errors for undefined variable ‘path’ and the variable ‘include’ is aso undefined . If you know why I might be getting these errors please help! I love the videos!
@colepower22
@colepower22 4 жыл бұрын
I’m so green, I apologize I have figured it out thank you so much.
@Warpgatez
@Warpgatez 3 жыл бұрын
No offense but you need to go back and drive home the fundamentals of Python. You should've easily known what that error meant. If you keep moving forward you're going to get stuck badly in tutorial hell.
@consig1iere294
@consig1iere294 4 жыл бұрын
Quick question, I know the correct way of doing all the "programming" is in view.py but why not use urls.py like the way you did in the beginning? Tbh I like that way better, including the functions in your urls.py is more easy to understand. Is there any advantage/disadvantage to that?
@ymnop9652
@ymnop9652 2 жыл бұрын
imagine i have a site with 50 urls path and 50 functions all in one file
@АлимбаевДиас
@АлимбаевДиас 4 жыл бұрын
very cool
@BakiMasters
@BakiMasters 3 жыл бұрын
I love it
@amazonfbaphotographer7333
@amazonfbaphotographer7333 3 жыл бұрын
what I don't understand is why you make the decision to place the code in which folder. Would be great if you explained why you want the urlpatterns to be in account folder instead of the crm1 folder.
@Magistrado1914
@Magistrado1914 4 жыл бұрын
Excellent course 04/07/2020
@lingua.community
@lingua.community 2 жыл бұрын
Thank youfor the tutorial. Why do we need to create a second url.py file? Doesn't it makeit more confusing? I think you got confused yourself on the way because of it. Could you please explain why we need to double urls.py? Thank you.
@DennisIvy
@DennisIvy 2 жыл бұрын
Separation of concern. Any app code should sit in an app folder. In most projects you would typically have multiple apps therefore it’s good to create a url file for each app. Putting all these in one file will make your app messy and hard to scale. So in this example we have a root url file that will be in charge of directing the core routing, then we’ll let the apps urls file handle everything else.
@jimdelacruz4109
@jimdelacruz4109 4 жыл бұрын
Very nice tutorial I found
@DennisIvy
@DennisIvy 4 жыл бұрын
Glad you liked it!
@husmbergtwo668
@husmbergtwo668 3 жыл бұрын
thanks
@rafainfernal
@rafainfernal 4 жыл бұрын
Great!
@sid4752
@sid4752 3 жыл бұрын
I have followed all the steps it did say Django successful, but when at the end it says localhost refused to connect.. Can someone help me out? I'm using MacOS Catolina.
@rinshinjalal1952
@rinshinjalal1952 3 жыл бұрын
go to stack overflow man
@sid4752
@sid4752 3 жыл бұрын
@@rinshinjalal1952 I did. Found nothing useful.
@praveenpatel5476
@praveenpatel5476 3 жыл бұрын
I do Same brother but showing this error TemplateDoesNotExist at /users accounts/index.html I have accounts->templates->accounts->index.html please help if you can
@swaroopkv4540
@swaroopkv4540 2 жыл бұрын
How to open for example contact page present in home.html page
@crabmeat88
@crabmeat88 3 жыл бұрын
I have followed the instructions but I get this error: Module 'accounts.views' has no 'home'. Even tho my code in views. py in accounts is as follows: from django.shortcuts import render from django.http import HttpResponse # Create your views here. def home(request): return HttpResponse('home') def products(request): return HttpResponse('products') def customer (request): return HttpResponse('customer')
@newton-182
@newton-182 3 жыл бұрын
You are god.
@consig1iere294
@consig1iere294 4 жыл бұрын
@ 4:55 I totally got confused, if that is not how it was suppose to happen then why did you do all of that?
@hackersway3135
@hackersway3135 4 жыл бұрын
hey thank you for your lovely videos.. can you please make a video on class based view.
@DennisIvy
@DennisIvy 4 жыл бұрын
Its on my list :)
@DeepakKumar-uz4xy
@DeepakKumar-uz4xy 4 жыл бұрын
Dennis is god.
@DennisIvy
@DennisIvy 4 жыл бұрын
:)
@yohannesayana9456
@yohannesayana9456 3 жыл бұрын
I did all what u did in my code and I saw django successsful message but still show the error:Page not found (404) Request Method: GET Request URL: 127.0.0.1:8000/about Using the URLconf defined in crm.urls, Django tried these URL patterns, in this order: admin/ The current path, about, didn't match any of these. You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.......can anyone help me please?
@husmbergtwo668
@husmbergtwo668 3 жыл бұрын
and thanks again
@husmbergtwo668
@husmbergtwo668 3 жыл бұрын
pip install thanks django-admin startthanks to thid man
@i_am_a_real_cat1443
@i_am_a_real_cat1443 3 жыл бұрын
what is the difference between django and django unchained?
@manikandanmurugan9090
@manikandanmurugan9090 4 жыл бұрын
one doubt , in any page like a product or customer page i put one href code and can i link to customer to product page how can i do it , but here u r using 127.0.0.1:8000/ this link and /customer , /product but how can i use if i click some like it should go to the respective page which i clicked
@triumphunim-ashipu3111
@triumphunim-ashipu3111 Жыл бұрын
Nice video, but how do I redirect to a url with a "pk"
@aleemhakim
@aleemhakim Жыл бұрын
I need source code for this please :( The given link isn't working .....
@kavyaseeramsetty5620
@kavyaseeramsetty5620 10 ай бұрын
helpful : )
@hakimled4300
@hakimled4300 4 жыл бұрын
We need course how to resize pictures
@DennisIvy
@DennisIvy 4 жыл бұрын
You mean in css or resizing pictures after saving in static files?
@ganeshkannor7025
@ganeshkannor7025 3 жыл бұрын
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '' I have get that Error...
@ganeshkannor7025
@ganeshkannor7025 3 жыл бұрын
what can I do?
@osamnsa904
@osamnsa904 2 жыл бұрын
Do I always need to install django with every new project?
@user-hq7hg2vx5l
@user-hq7hg2vx5l 4 жыл бұрын
how can i open the project once again after shutting it once
@lastcolnew4520
@lastcolnew4520 2 жыл бұрын
so where are the files to put the html code?
@deepaibangladesh8222
@deepaibangladesh8222 4 жыл бұрын
A great tutorial on Django. But if you used white theme on text editor it would be more visible to the user.
@husmbergtwo668
@husmbergtwo668 3 жыл бұрын
print("thanks")
SCHOOLBOY. Мама флексит 🫣👩🏻
00:41
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 7 МЛН
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 106 МЛН
Magic or …? 😱 reveal video on profile 🫢
00:14
Andrey Grechka
Рет қаралды 82 МЛН
小丑在游泳池做什么#short #angel #clown
00:13
Super Beauty team
Рет қаралды 38 МЛН
Django Skills Roadmap To Getting A Job
17:31
Dennis Ivy
Рет қаралды 68 М.
The New Way To Create Protected Routes With React Router V6
9:19
How I learned Django in 3 Months
8:02
Dennis Ivy
Рет қаралды 347 М.
URLs & Views | Python Django - The Practical Guide
1:30:24
Learn With Udemy Course
Рет қаралды 1,7 М.
Python Django Explained In 8 Minutes
8:11
Dennis Ivy
Рет қаралды 288 М.
Password Reset Email | Django (3.0) Crash Course Tutorials (pt 20)
19:28
Python Django Multiple HTML Pages Configure Routing (urls.py)
17:24
Haritha Computers & Technology
Рет қаралды 30 М.
Beginner's Guide to the Bash Terminal
1:14:37
Joe Collins
Рет қаралды 2,3 МЛН
Python Django App & Templates tutorial
23:07
Dave Gray
Рет қаралды 16 М.
SCHOOLBOY. Мама флексит 🫣👩🏻
00:41
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 7 МЛН