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

Поделиться
HTML-код
  • Опубликовано: 14 янв 2025

Комментарии • 147

  • @DennisIvy
    @DennisIvy  5 месяцев назад

    Don't forget to check out my Complete Django course! dub.sh/NvGboTI

  • @isaacmukama5265
    @isaacmukama5265 5 лет назад +128

    I had almost given up on django because the tutorials weren't clear until i met this guy. You are God sent

    • @DennisIvy
      @DennisIvy  5 лет назад +32

      These comments and your progress is why I do this :) Thank you for your feedback. keep me updated on how things go.

    • @NoCSDegree
      @NoCSDegree 5 лет назад

      yes, thank god!

    • @mohcench1903
      @mohcench1903 4 года назад

      me too :)

    • @viveknamaye4669
      @viveknamaye4669 4 года назад

      Same here lol,,😂

    • @shahaburcse8006
      @shahaburcse8006 3 года назад

      U r amazing teacher Dennis

  • @geetcyberlab5108
    @geetcyberlab5108 4 года назад +36

    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 года назад +9

      Haha thanks! So glad I could simplify the concept for you :)

    • @theblackelephant
      @theblackelephant 3 года назад

      @@DennisIvy You are the guy what speaks knowledge practically. You saved us alot alot***100000000000

  • @SantiagoJFontenla
    @SantiagoJFontenla 4 года назад +17

    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

  • @devanshbansal3130
    @devanshbansal3130 4 года назад +1

    Not even the top courses on YT make things this clear. Glad I found this challenge.

  • @roypdxful
    @roypdxful 4 года назад +12

    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!

  • @louismefor9539
    @louismefor9539 5 лет назад +5

    If most lecturers were like this guy!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!, GENIUS!!!!!!!!!!!!!!!!!

  • @josephlasan387
    @josephlasan387 10 месяцев назад

    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.

  • @myanch200
    @myanch200 4 года назад

    Definitely the only youtuber that actually explains the concept behind the technology

  • @doniyorabduvokhidov1706
    @doniyorabduvokhidov1706 4 года назад +8

    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 года назад +2

      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

  • @thomasedwardking7286
    @thomasedwardking7286 Год назад

    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 4 года назад

    This is the best one in youtube, I searched a lot and was not able to understand untill this one.
    Thaks Dennis

  • @justalone1549
    @justalone1549 3 года назад +1

    oh man that's COOL course for all the time

  • @NOTHING-en2ue
    @NOTHING-en2ue Год назад

    the best teacher of Django, thanks a lot ❤

  • @kazishafin1
    @kazishafin1 4 года назад

    Best Django tutorial on RUclips.

  • @Furqangamerpk
    @Furqangamerpk 4 года назад

    I never commented on any video but this is awesoooooooooooooooooooomee!!!!!!!!!!!

  • @pinakastra
    @pinakastra 4 года назад

    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  4 года назад +1

      Thank you Vivek! I really appreciate that

  • @w3Develops
    @w3Develops 4 года назад

    This tutorial is really helpful. SUPER grateful I found Mr. Ivy's channel.

  • @noorzaibchohan1200
    @noorzaibchohan1200 Год назад

    well explained Dennis. you are saving our precious time for learning Django.

  • @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!

  • @drop_messages6226
    @drop_messages6226 4 года назад +1

    Thank you. I appreciate that you make the source code available, that alone earned you a subscriber.

  • @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!

  • @happybuttonquail9603
    @happybuttonquail9603 4 года назад +1

    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 :)

  • @petecodes
    @petecodes 5 лет назад +3

    Thank you! all the videos now use out of date syntax for django so finally I have it working!

  • @kuwingderazen7539
    @kuwingderazen7539 4 года назад +1

    thank you finally i understood the basic django url routing.

  • @wuajaz91
    @wuajaz91 4 года назад

    it was so good idea to split explanation of the whole project into smaller pieces, really appreciate for your hard work. :)

  • @KeyserTheRedBeard
    @KeyserTheRedBeard 2 года назад +1

    brilliant content Dennis Ivy. I killed that thumbs up on your video. Keep up the high-quality work.

  • @MuhammadMahirQ8
    @MuhammadMahirQ8 5 лет назад +7

    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  5 лет назад +3

      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 5 лет назад +1

      @@DennisIvy hello dennis. a quick question.. why did you use "return HttpResponse" instead of "'return render" in the views section under the function

  • @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 4 года назад

    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)

  • @adhirajmajumder
    @adhirajmajumder 4 года назад +1

    Wow you're the best Django Instructor

  • @rutviktak716
    @rutviktak716 4 года назад +1

    Dude,ur explanation is just perfect and understood everything clearly in the first go😊

  • @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 👍

  • @youcef659
    @youcef659 4 года назад

    i haven't watched the entire playlist but i think you deserve more subscribers
    Good luck

  • @ebenezersiaw935
    @ebenezersiaw935 3 года назад

    Dennis your tutorials are awesome

  • @mohdeshtiwi629
    @mohdeshtiwi629 4 года назад

    wow man where you were before 3 days thanks a lots. I love you

  • @JohnnysaidWhat
    @JohnnysaidWhat 4 года назад +2

    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 года назад +3

      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.

  • @theblackelephant
    @theblackelephant 3 года назад +1

    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 года назад +1

    just started django and i hope this tutorial will explain everything clearly

  • @saralafandi2575
    @saralafandi2575 4 года назад

    Yoo man you are the best i finally understood the basic of django ! perfect tutorials THANK YOUU

  • @aleemhakim
    @aleemhakim 2 года назад

    This actually made alot of sense and tbvh I already know django a bit but this made it much easier
    Thank you :)

  • @Anesu98
    @Anesu98 20 дней назад

    Bro thank you so much ❤ this is excellent explanation. I love this.

  • @aaaa11121
    @aaaa11121 3 года назад +1

    Круто спасибо Денис!

  • @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.

  • @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!

  • @aggieaggie3946
    @aggieaggie3946 3 года назад

    Thank you so much, you have really simplified life for me

  • @astrophotographyenthusiast5273
    @astrophotographyenthusiast5273 4 года назад

    Thanks for this man! Keep up the hard work.

  • @johnherrera5913
    @johnherrera5913 4 года назад

    Thanks for your videos man. Greets from Colombia.

  • @garrettohara5873
    @garrettohara5873 3 года назад

    Great content. Exaclty what I needed to organize my app for scale.

  • @julianbazanaguirre8439
    @julianbazanaguirre8439 4 года назад +2

    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 года назад +2

      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!

  • @modernmistyk4341
    @modernmistyk4341 2 года назад

    Thank you so much for your help, you are a saint

  • @hansalexander1051
    @hansalexander1051 4 года назад

    Best tutorial so far.. thanks bro

  • @jamesdean3787
    @jamesdean3787 4 года назад

    well explained ... very clear and concise. thank you!

  • @hakimled4300
    @hakimled4300 4 года назад +1

    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

  • @charanpasupula3763
    @charanpasupula3763 4 года назад

    That was clean explanation. Thank you

  • @husmbergtwo668
    @husmbergtwo668 4 года назад +1

    thanks plz keep in thus way

  • @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?

  • @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

  • @kate_chengdu
    @kate_chengdu 3 года назад

    great course!

  • @banaras.wala.foreignaala
    @banaras.wala.foreignaala 4 года назад

    Hi, I am loving it.

  • @MohamedelAmine
    @MohamedelAmine 4 года назад +2

    thank you

  • @Mr_MicDaniel
    @Mr_MicDaniel 4 года назад +1

    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?

  • @RodriMaxTV
    @RodriMaxTV 4 года назад +2

    Whatdoes the from . Import means ? like that dot ...

    • @DennisIvy
      @DennisIvy  4 года назад +1

      "from . import views" This means import the views file that is in the same directory.

  • @kamaleshpramanik7645
    @kamaleshpramanik7645 3 года назад

    awesome .. thank you very much.

  • @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.

  • @datahead_girl
    @datahead_girl 4 года назад

    I love your videos! :)

  • @colepower22
    @colepower22 4 года назад +1

    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 4 года назад

      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.

  • @Alliswelltoday
    @Alliswelltoday 4 года назад

    love you bro , please make similar videos for REST APIS

  • @BakiMasters
    @BakiMasters 4 года назад

    I love it

  • @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.

  • @АлимбаевДиас
    @АлимбаевДиас 5 лет назад +1

    very cool

  • @amazonfbaphotographer7333
    @amazonfbaphotographer7333 4 года назад

    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

  • @osamnsa904
    @osamnsa904 3 года назад

    Do I always need to install django with every new project?

  • @consig1iere294
    @consig1iere294 4 года назад +1

    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

  • @peachperion
    @peachperion Год назад

    Bless you

  • @triumphunim-ashipu3111
    @triumphunim-ashipu3111 Год назад

    Nice video, but how do I redirect to a url with a "pk"

  • @jimdelacruz4109
    @jimdelacruz4109 5 лет назад

    Very nice tutorial I found

  • @rafainfernal
    @rafainfernal 4 года назад

    Great!

  • @aleemhakim
    @aleemhakim 2 года назад

    I need source code for this please :( The given link isn't working
    .....

  • @hakimled4300
    @hakimled4300 5 лет назад +1

    We need course how to resize pictures

    • @DennisIvy
      @DennisIvy  5 лет назад

      You mean in css or resizing pictures after saving in static files?

  • @i_am_a_real_cat1443
    @i_am_a_real_cat1443 3 года назад

    what is the difference between django and django unchained?

  • @hackersway3135
    @hackersway3135 4 года назад

    hey thank you for your lovely videos.. can you please make a video on class based view.

  • @lastcolnew4520
    @lastcolnew4520 2 года назад

    so where are the files to put the html code?

  • @swaroopkv4540
    @swaroopkv4540 2 года назад

    How to open for example contact page present in home.html page

  • @sid4752
    @sid4752 4 года назад +1

    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 4 года назад +1

      go to stack overflow man

    • @sid4752
      @sid4752 4 года назад +1

      @@rinshinjalal1952 I did. Found nothing useful.

  • @husmbergtwo668
    @husmbergtwo668 4 года назад

    thanks

  • @user-hq7hg2vx5l
    @user-hq7hg2vx5l 4 года назад

    how can i open the project once again after shutting it once

  • @praveenpatel5476
    @praveenpatel5476 4 года назад

    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

  • @DeepakKumar-uz4xy
    @DeepakKumar-uz4xy 4 года назад

    Dennis is god.

  • @husmbergtwo668
    @husmbergtwo668 4 года назад

    and thanks again

  • @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

  • @crabmeat88
    @crabmeat88 4 года назад

    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')

  • @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 4 года назад +1

    pip install thanks
    django-admin startthanks to thid man

  • @ProdByNewton
    @ProdByNewton 3 года назад

    You are god.

  • @ganeshkannor7025
    @ganeshkannor7025 4 года назад

    OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: ''
    I have get that Error...

  • @kavyaseeramsetty5620
    @kavyaseeramsetty5620 Год назад

    helpful : )

  • @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.

  • @ganeshkannor7025
    @ganeshkannor7025 4 года назад

    pls fix my error

    • @ganeshkannor7025
      @ganeshkannor7025 4 года назад

      ModuleNotFoundError: No module named 'accounts.urls'