Python Django Tutorial for Beginners

Поділитися
Вставка
  • Опубліковано 27 тра 2024
  • Become a Django pro! 🚀 Build amazing back-ends with this beginner-friendly Python tutorial.
    🔥 Ready for a deep dive?
    - Check out my full course: bit.ly/3E7Iq4d
    - Subscribe for more awesome content: goo.gl/6PYaGF
    Other resources:
    Python Tutorial for Beginners: • Python Tutorial - Pyth...
    MySQL Tutorial for Beginners: • MySQL Tutorial for Beg...
    ✋ Stay connected:
    - Twitter: / moshhamedani
    - Facebook: / programmingwithmosh
    - Instagram: / codewithmosh.official
    - LinkedIn: / codewithmosh
    TABLE OF CONTENT
    0:00:00 - Introduction
    0:00:58 - Prerequisites
    0:01:38 - How to Take this Course
    0:02:40 - Getting Started with Django
    0:03:19 - What is Django?
    0:06:08 - How the Web Works
    0:10:32 - Setting Up the Development Environment
    0:12:33 - Creating Your First Django Project
    0:18:44 - Using the Integrated Terminal in VSCode
    0:22:05 - Creating Your First App
    0:25:36 - Writing Views
    0:27:27 - Mapping URLs to Views
    0:32:10 - Using Templates
    0:36:19 - Debugging Django Applications in VSCode
    0:44:11 - Using Django Debug Toolbar
    0:48:37 - Building a Data Model
    0:49:21 - Introduction to Date Modeling
    0:52:00 - Building an E-Commerce Data Model
    0:56:35 - Organizing Models in Apps
    💡 Why Django?
    - Python's top web framework - popular with startups to giants.
    - Build powerful back-ends fast.
    - High-demand developer skill.
    👉 This tutorial is perfect for you if:
    - You know basic Python.
    - Want to build complex web applications.
    - You're aiming for a back-end development career.
    Let's get coding!
    #django #python #webdevelopment #backend #coding

КОМЕНТАРІ • 2 тис.

  • @programmingwithmosh
    @programmingwithmosh  2 роки тому +152

    Get the Ultimate Django course (zero to hero): bit.ly/3E7Iq4d

    • @emmanuelrotimi806
      @emmanuelrotimi806 2 роки тому +3

      Yes, he's right, when you say in your tutorials that "don't worry, I'll hold your hand through it"... It's like a confidence a little child has in a Father. Thanks and well done.
      But Is it that you hate PHP or you don't use it? Bcos I never saw your videos on it.
      Please, is there a way to chat you in private!?

    • @_sdh
      @_sdh 2 роки тому +3

      hahass

    • @sakhrnabil7
      @sakhrnabil7 2 роки тому +3

      Is there a discount Voucher for students? :)

    • @_sdh
      @_sdh 2 роки тому +3

      L

    • @SoberMan2001
      @SoberMan2001 2 роки тому +11

      Mosh Can you please upload at least one full course for free ?

  • @JHL0L
    @JHL0L Рік тому +592

    *For Windows users:*
    INTERPRETER:
    _In the virtual environment folder, instead of "bin" folder we have "Script" folder._
    PYTHON INTERPRETER:
    _You must provide full path to the python executable - i.e.: C:\Users\username\.virtualenvs\myDjangoProject-y6mANNT9\Scripts\python.exe"_
    MISSING .vscode FOLDER:
    _Using command pallete, open "Open Workspace Settings (JSON)". This will force .vscode folder to appear._

    • @amendola2232
      @amendola2232 Рік тому +39

      You are a godsend, I literally love you

    • @Priya-oz4ib
      @Priya-oz4ib Рік тому +14

      @@amendola2232 I've copied and pasted the path to the select interpreter but it's not appearing in the settings.json file. Will the code still work?

    • @amendola2232
      @amendola2232 Рік тому +12

      @@Priya-oz4ib yeah, everything works, just won't appear on the JSON

    • @birukabel3590
      @birukabel3590 Рік тому

      Thank you sir

    • @bricolageb9398
      @bricolageb9398 Рік тому +3

      but i write \bin\pyhon automaticly saved as script\python.exe so its not problem

  • @ismaildalhatu308
    @ismaildalhatu308 2 роки тому +925

    I feel so secure when mosh says in this course i’ll teach you everything you need to know.

  • @phillipgilligan8168
    @phillipgilligan8168 2 роки тому +381

    To all those coming in and using vscode on windows, when setting your interpreter path, its in C:\Users\User\.virtualenvs\storefront-XXX\scripts\python , not \bin\python. Obviously substitute "User" with your username, and "XXX" with your env.
    This also doubles up for those looking for the "bin" directory when hes showing where its at in file explorer, its in "scripts".
    Update: it seems for the python virtual env in terminal on vscode there seems to have been an update on windows. Now when you go to select it will show you the name of the virtual env you are trying to select in ()'s so you can be sure. Inside the parentheses will be the name of the folder you started the virtual env in. Pretty cool.

    • @caionepomuceno986
      @caionepomuceno986 2 роки тому +4

      Thanks, mate!

    • @arinatama5502
      @arinatama5502 2 роки тому +28

      i use windows, and had already followed all the steps but I couldn't get vscode directory on my storefront . Do you know what the problem?

    • @karamthebian1660
      @karamthebian1660 2 роки тому +4

      @@arinatama5502 heyy same issue here, did u find the solution?

    • @hasarajayasinghe
      @hasarajayasinghe 2 роки тому

      don't worry about it, when you open the terminal it will open correctly.

    • @reignellejoycanasa5914
      @reignellejoycanasa5914 2 роки тому

      thanks!!

  • @ianisoprian8187
    @ianisoprian8187 Рік тому +64

    After going through college and having countless hours spent in front of my computer trying to figure things out on my own, this video was like a touch from god, it was so easy to follow and very very well explained. Thanks for your help!

  • @binitagupta6668
    @binitagupta6668 2 роки тому +139

    UA-cam really seems like blessing because of people like you. thank you!🥰

    • @fahadismail7430
      @fahadismail7430 2 роки тому

      thank you for supporting me

    • @anshsharma494
      @anshsharma494 2 роки тому +3

      @@fahadismail7430 But this comment is for Mosh🤣🤣

    • @kamal-hassan
      @kamal-hassan 2 роки тому +2

      @@anshsharma494 😂😂😂

    • @anshsharma494
      @anshsharma494 2 роки тому +1

      @@kamal-hassan where are you from bro

  • @mattdagangsta
    @mattdagangsta 2 роки тому +5

    My first video of yours, your ability to teach this framework in a linear fashion that actually MAKES SENSE cant be found anywhere else. Saved me a bunch of time and hassle for this project I have coming up. Thanks a lot!

  • @adventurer2395
    @adventurer2395 2 роки тому +145

    I think you are one of the few instructors who actually take the time to create content on testing and deployment for your courses. Having a CS background, I really like how you differentiate yourself in this regard.

    • @madmister
      @madmister Рік тому

      who tf asked bout your background

  • @hankanguyenova1672
    @hankanguyenova1672 Рік тому +12

    Best 3 hours spent on an online course! I like the fast pace of the course, that was compacted with so much information that I had to keep pausing, trying to understand, googling new terminology. This course is so inspiring and worth spending time on. I enjoyed every single minute of it. Thank you so much for sharing the knowledge, I really appreciate it. Will continue on the 10-hour course! Wish you all the best!

  • @petrsemenov7570
    @petrsemenov7570 2 роки тому +67

    Here it comes, mates! Cheers! I’ve been waiting for it for 1,5 years!

    • @petrsemenov7570
      @petrsemenov7570 2 роки тому +4

      @@programmingwithmosh I sure will! Are we expecting a longer paid course now? I really hope so! Take my money!

    • @sarithakonanki7901
      @sarithakonanki7901 2 роки тому +1

      @@programmingwithmosh u already popular guru🙏❤️

  • @moxieable
    @moxieable Рік тому +46

    I've been struggling to understand the basic concept of django for the past 3 years, it's amazing that I found my answers just 30 minutes into this awesome video tutorial.
    Thanks Mosh

  • @composerkris2935
    @composerkris2935 7 місяців тому +4

    I was following along with the tutorial that is provided on the Django page and getting through it ok, but I’m about a quarter of the way through your video and it’s already so much better because you are explaining the why. So many tutorials just take the approach of “do this, then do that.” But it makes it hard to apply to other scenarios because you don’t know why you’re doing certain things. So great job!

  • @kirwakelvinkering3122
    @kirwakelvinkering3122 2 роки тому +1

    Thank you Soo much Mosh ,, I rigmaroled around many webs for a long time to understand Django ,, but guess what , everything was in vain. With this one-hour tutorial , I immediately navigated almost all tutorials ,, be it 10-hour long , 3-hour long et cetera, you are just the best of all teachers we have in the S. Engineering field . Again , thank you soooooo much 👏

  • @theatreresponse4206
    @theatreresponse4206 2 роки тому +67

    Finally legend is back.

    • @aravindkumar4705
      @aravindkumar4705 2 роки тому

      Bro may I no what's the use of this python djongo? I mean what all can we do with it? Can u pls explain, i jst wnt to no, pls tell

    • @theatreresponse4206
      @theatreresponse4206 2 роки тому

      This course is for beginners who are new to the Django framework, Mosh Sir will explain it with a cool 😎 e-commerce ( online shopping website) project. So you enroll it.

    • @theatreresponse4206
      @theatreresponse4206 2 роки тому

      This course is for beginners who are new to the Django framework, Mosh Sir will explain it with a cool 😎 e-commerce ( online shopping website) project. So you enroll it.

    • @janukasubedi2715
      @janukasubedi2715 2 роки тому +1

      Lol he is gone again🤣

  • @markdinopelonia3499
    @markdinopelonia3499 2 роки тому +330

    The legend is back. 😍 As a self-taught programmer, your crash courses are always in my starter pack.
    Thanks to you I'm now a Frontend Engineer.💖

    • @martynbirdem189
      @martynbirdem189 2 роки тому +2

      ua-cam.com/video/v4KTDqnYuwo/v-deo.html -- Take an image using webcam javascript
      ua-cam.com/video/k9yxjfDarqQ/v-deo.html -- currency convertion using Javascript
      very usefull content for coding

    • @youngmingo103
      @youngmingo103 2 роки тому +3

      How did you start yourself ? Any advice for someone first beginning ?

    • @fabiendu83640
      @fabiendu83640 2 роки тому +4

      @@youngmingo103 he just watched videos
      he was taught through yt

    • @kind_enquirer6229
      @kind_enquirer6229 2 роки тому

      Go, go, go Marky Dinoey

    • @GMPranav
      @GMPranav 2 роки тому +14

      Very funny thing to say in a vid about a backend framework innit

  • @Paul-js3ro
    @Paul-js3ro 2 роки тому +28

    I celebrate you Mosh. Always wanted to get started on programming. I bought tonnes of books and wasted years but could never really get started. Now am on my way to learning thanks to you. I have rediscovered my interest and am enjoying every step!

    • @Pete-da-peter
      @Pete-da-peter Рік тому +1

      Just check in on you, Are you a programmer now? what project have you built and are you working as SWE? 🤜🏾

  • @memeline7015
    @memeline7015 Рік тому +2

    hey mosh! thanks for making this course, It helped me and its wonderful! to all of the people reading this comment please understand that learning to code takes time. try to give python 1 hour daily and it's very important to understand the basics of python. so good luck out there!

  • @banhimukherjee
    @banhimukherjee 2 роки тому +3

    I was stuck at one place for quite sometime , today as a beginner could finally launch Django..Thank you Mosh, great video.

  • @vdevivaraprasad3588
    @vdevivaraprasad3588 2 роки тому +7

    I am waiting for this course from you sir.finally you are made this.from last one year i am learning the programming languages that are made by you.those are out standing and explanation is beautiful.

  • @chriss4154
    @chriss4154 2 роки тому

    This amazing feeling when you see only errors in the browser and then Boom suddenly it works. So satisfying. Thank you Mosh. I think in December I'll buy your full course on Django.

  • @savant7288
    @savant7288 Рік тому +5

    i have a job interview in 2hours as a django developer and here i am learning django lols

  • @victorisaac8331
    @victorisaac8331 2 роки тому +3

    Mosh The Legend, the man who held my hand and made me a Python programmer. You're a blessing to us all

  • @TheGrandmaster1
    @TheGrandmaster1 2 роки тому +74

    Thanks for this man. I have a few courses that are like 10 hours but they seem a little overwhelming to start with. But I love your stuff. Really gets me up and going. Someday I might actually have a nicer place to live, and a nicer car and better life because of channels like this.

    • @GagandeepSinghKundi
      @GagandeepSinghKundi 2 роки тому +1

      Wish you loads of luck

    • @Olasthetics
      @Olasthetics Рік тому +1

      Hows your life now

    • @vedkorla300
      @vedkorla300 Рік тому

      Good luck man, coding can change the track of your career. It did for a lot of friends of mine and got them a good stable job. Stay at it!

  • @mav29
    @mav29 2 роки тому

    your stuff are definitely go to videos, working on some project and I needed to redeploy my old projects from php, moving to python , just done with the native cli automation, i'll be working on its web dashboard now, this helped me get to start it, old templates are ready just migrating now.
    thanks thanks a lot

  • @Tech_Publica
    @Tech_Publica 2 роки тому +8

    you know what would be really cool to watch, Mosh? A video series on your workflow as a content creator. I admire your work not only for your competence as a dev and talent as a teacher, but how engaging and high quality and (appartently) effortless your content is.
    I know this is kind of revealing your secrets but I think that are A LOT of aspiring content creators (not me, for sure, I am asking for a friend.. :P ) who might take huge advantage by having you teach them how to go about in detail to create learning material of this quality

  • @dahiaturriduan
    @dahiaturriduan 2 роки тому +8

    This came at the perfect time, I was about to finish the python tutorial video and this came, thanks again.

  • @tarunlokhande9916
    @tarunlokhande9916 2 роки тому +25

    finally!!! thank you mosh... wait is over... going to learn it now

    • @QAInsights
      @QAInsights 2 роки тому +4

      @@programmingwithmosh Any love for Go lang :)

    • @martynbirdem189
      @martynbirdem189 2 роки тому

      ua-cam.com/video/S5FzZPpqndY/v-deo.html Javascript tutorial easy example
      ua-cam.com/video/waXnjADEEAg/v-deo.html

  • @alansnyder6565
    @alansnyder6565 Рік тому +1

    I love this course. It is much more helpful than the professor in my current class!!

  • @halimasworld4379
    @halimasworld4379 2 роки тому +7

    I love Mosh’s videos. I have learned Python, Javascript and Html by his videos.
    Mosh can you make a video on Flutter please? Because I can’t understand any other tutorials except yours.

  • @haokaixuan
    @haokaixuan 2 роки тому +5

    I HAVE YOUR PYTHON COURSE, SO THIS WAS PRETTY EZ FOR ME, THANK YOU SO MUCH MOSH! WE LOVE YOU!

  • @Flashxyz123
    @Flashxyz123 2 роки тому +3

    thank you so much mosh you changed my life because your python course was the first one I did keep it up 👍😊

  • @gerryramosftw
    @gerryramosftw 7 місяців тому +2

    I purchased the course and wow it is extremely comprehensive, and engaging! not boring at all and I feel like there is not a wasted moment. it is not like college lectures where i want to fall asleep. each video is bite size and i actually look forward to each one, super fun

    • @AnonSmith-hh5cm
      @AnonSmith-hh5cm 6 місяців тому

      Definitely the extra push I am looking for to purchase the course. I know my $99 won't go to waste. Thanks for dropping a testimonial. 😊

  • @adityaprabhakolay3562
    @adityaprabhakolay3562 2 роки тому +4

    Also I learned a lot from your python (full course) video. It helped a lot! Thank you😊

  • @priyanka1884
    @priyanka1884 2 роки тому +3

    Thanks you mosh ❤️❤️❤️. Got job at Infosys of 25LPA , your videos helped a lot achieving my aspirations. And my son learns python from your videos and my son was waiting for this django from 1.5 years thx a lot.

  • @mdnazmulh.8908
    @mdnazmulh.8908 2 роки тому +10

    Finally, Django Course comes... Thank you soo much Mosh :)

    • @martynbirdem189
      @martynbirdem189 2 роки тому

      ua-cam.com/video/S5FzZPpqndY/v-deo.html Javascript tutorial easy example
      ua-cam.com/video/waXnjADEEAg/v-deo.html

  • @user-uy2ur3ui3m
    @user-uy2ur3ui3m 4 місяці тому

    Before this video, I had no idea about Python, and now I am more confident about creating my personal project for my coop. Thank you so much, brother

  • @koollucian
    @koollucian 10 місяців тому +2

    You've got a fantastic way to teach. This video is not only very informative but, in a way, also entertaining compared to some video tutorials that I have come across. I have decided to subscribe. Kudos to you and your team! Keep it up.

  • @harshvpandey101x
    @harshvpandey101x 2 роки тому +6

    Dude, you're the best teacher EVER!!!

  • @drecode198
    @drecode198 2 роки тому +6

    Finally now I understand what django is. Thank you so much mosh hamedini.
    Subscribed🥳

  • @rpf23543
    @rpf23543 Рік тому +1

    The first tutorial I have watched from you Mosh and I am very much impressed. Awesome! Thank you very much!

  • @js_offc8436
    @js_offc8436 2 роки тому

    It's one of the best tutorials that I find on UA-cam, thank you!

  • @jacktembo
    @jacktembo 2 роки тому +30

    Have been waiting for this course for 2 months now since you told us that you are preparing a Django course. This is the only Django course I needed on earth. I really wanted to learn from you alone. Thanks so much Mosh.

    • @kind_enquirer6229
      @kind_enquirer6229 2 роки тому +2

      The patient dog gets to feast on the fattest bone.

    • @doomerwojak1368
      @doomerwojak1368 Рік тому +2

      You should learn from everyone and mainly - from the documentation. These instructors may not teach every concept due to their availability, hence exploring other sources is a great idea as well.

  • @khaliphathiane584
    @khaliphathiane584 2 роки тому +3

    Finally !! I will definitely take the full course ❤️

  • @nature_love734
    @nature_love734 2 роки тому +1

    The motivation before getting started, is the best way of teaching and is even easier to understand ☺️ (thank you sir )

  • @gregorylibenson488
    @gregorylibenson488 Рік тому +1

    Another awesome course in a very clear English ! As always, good for you, Mosh !!!

  • @arosh.akalanka
    @arosh.akalanka 2 роки тому +9

    Thank You Mr. Mosh.
    If *Teaching* is an art, You're a *Picasso* . ❤️

    • @marflage
      @marflage 2 роки тому

      It is, and he is

  • @calitts4708
    @calitts4708 2 роки тому +3

    Just what I needed, later I'm gonna share with my friends, thanks!

  • @zaeltrus
    @zaeltrus Рік тому

    Thank you so much for this.
    I am so annoyed that I go to a university where I have to pay 15.000 GBP and the lectures are so bad I have to look for other resources. And you provide material that is superior in quality of information and representation as well. Thank you so much!!

  • @davidsantiagogalvan3795
    @davidsantiagogalvan3795 2 роки тому +1

    Thank you a lot Mosh! I wasn't learning great Django, but I see this video, and I understand 100% Thank you very much 💯💻

  • @roshanaryal310
    @roshanaryal310 2 роки тому +7

    You are one of the best, Mosh❤️! Thank you for this course!!

    • @martynbirdem189
      @martynbirdem189 2 роки тому

      ua-cam.com/video/v4KTDqnYuwo/v-deo.html -- Take an image using webcam javascript
      ua-cam.com/video/k9yxjfDarqQ/v-deo.html -- currency convertion using Javascript
      very usefull content for coding

  • @robertmerritt5245
    @robertmerritt5245 2 роки тому +11

    Hi Mosh, this is awesome, as usual! I plan to enroll in your full course as a monthly subscriber, but just wanted some clarification on the 10 hour course length advertised in the UA-cam video vs the 5 hours indicated on your site. Are there other courses that make up this one, or is it just an approximation for how long it would take to complete the 5 hours of video content? Looking forward to more of your course.

  • @abhaytiwari6411
    @abhaytiwari6411 2 роки тому

    Mosh i have started my coding journey in 9th grade with your python videos to be honest your video are so good

  • @protuscoolnetwork402
    @protuscoolnetwork402 2 роки тому +2

    Hi Mosh, I am a beginner in python programming. Your tutorials are perfect. Well done man!

  • @litDevYT
    @litDevYT 2 роки тому +6

    Never been this excited to learn

  • @florianner9646
    @florianner9646 2 роки тому +5

    This is so timely! Thank you so much for releasing this course. You're the best! 😊

  • @EvgeniySakharov
    @EvgeniySakharov 2 місяці тому

    The beginning is impressive. That's why I signed up and liked it. Now Mosh you have a student from Russia.

  • @mindmaster064
    @mindmaster064 2 роки тому +1

    Would just like to say that you have a gift for simplifying and translating complexity into something easily digestible. I've tried to learn Django a few times and given up because of the hodge-podge of models, views, and whatever not being clearly explained enough to where I could see how they are glued together. Mind you, I understand React, JS, and other frameworks just fine, but Django is just 'different' from the others and I wasn't getting it. Even with this little 1hr sampler I probably understand it at least 2x as much, thanks!

  • @AmamDewan
    @AmamDewan 2 роки тому +16

    Me and my friends was waiting for this tutorial. In the mean time I got a job as Associate Software Engineer. Do you believe? Associate! not Junior!
    Thank you mosh! You will be in my heart!

    • @AmamDewan
      @AmamDewan 2 роки тому

      @@programmingwithmosh as always I will. Love from Bangladesh ❤️

    • @believer8754
      @believer8754 2 роки тому

      @@AmamDewan hi bro can u tell me that u just learn from utube to got job or havwe any CS degree

    • @AmamDewan
      @AmamDewan 2 роки тому

      @@believer8754 I'm from CS background, but not completed yet. Most of the tech I've learned from mosh courses. Not only youtube, I've registered for full courses. believe me it's worthy. In my interview about 80% technical questions covered by these courses. So my suggestion is hop in!

    • @believer8754
      @believer8754 2 роки тому

      @@AmamDewan mee too i am now in CS degree some samesters left could u share whatsapp number so can communicate in future thnks

    • @AmamDewan
      @AmamDewan 2 роки тому

      @@believer8754 yah sure +8801521103492

  • @arvindhkumar686
    @arvindhkumar686 2 роки тому +2

    Your tutorials are very useful to me. Thank you for teaching.

  • @lucrainville7095
    @lucrainville7095 2 роки тому

    Your entities relations animation is wonderfully clear

  • @monkmode9138
    @monkmode9138 Рік тому

    the best tutorial video i have ever seen, the most things i liked about this video is how you describe what we should know for this tutorial in the beginning of the video.
    the other tutorial channels don't do that. they just hop into the video

    • @mehmetcan.
      @mehmetcan. Рік тому

      Yeah dude I agree with you. He is the best teacher I've ever seen. If I was a woman, I'd give my little cupcake to this man

  • @donwp
    @donwp 2 роки тому +7

    Thanks Mosh! You seem to have a talent for hitting the key points just deep enough to enable understanding and experimentation. I'm interested in more info on a comment you make about templates. You mention that nowadays people use Python to return data, not html. Is that because people are now passing data to tools like React, or is there something else happening that I don't know about.

    • @smokinep
      @smokinep 2 роки тому +1

      Hi, I would also like a clarification on Mosh's comments for templates not being used much

    • @ugochukwuchukwudifu9776
      @ugochukwuchukwudifu9776 Рік тому

      Yes, data is now passed to tools like react or other frontend tools. It's sort of an industry standard. It's called decoupled architecture.

  • @mdnazmulh.8908
    @mdnazmulh.8908 2 роки тому +8

    Again waiting for the advanced concepts... Thanks!

    • @martynbirdem189
      @martynbirdem189 2 роки тому

      ua-cam.com/video/S5FzZPpqndY/v-deo.html Javascript tutorial easy example
      ua-cam.com/video/waXnjADEEAg/v-deo.html

  • @OmerBoehm
    @OmerBoehm Рік тому

    Love your videos, every word is gold.
    Perfect timing for me ;) I was just looking to get started with Django.

  • @frontrunnercars4199
    @frontrunnercars4199 2 роки тому

    You're the best online tutor have ever met, Your Free courses are always fantastic and insightful. THANKS BOSS!

  • @evergreen_5
    @evergreen_5 2 роки тому +5

    By watching your UA-cam video course . I'm able to write simple python programs in just 1 month. You're are best teacher I have ever learn from my full respect goes to you . 😊

    • @martynbirdem189
      @martynbirdem189 2 роки тому

      ua-cam.com/video/S5FzZPpqndY/v-deo.html Javascript tutorial easy example
      ua-cam.com/video/waXnjADEEAg/v-deo.html

  • @alexkiborgok7588
    @alexkiborgok7588 2 роки тому +5

    I felt knowledgeable in django the moment I got a notification for this course.

    • @martynbirdem189
      @martynbirdem189 2 роки тому

      ua-cam.com/video/S5FzZPpqndY/v-deo.html Javascript tutorial easy example
      ua-cam.com/video/waXnjADEEAg/v-deo.html

  • @kashififtikhar571
    @kashififtikhar571 2 роки тому +1

    Thanks for your effort in making this premium course and easily available to us.

  • @Webtricker
    @Webtricker 2 роки тому

    Thank you so much for explaining Python Django in a very easy and beautiful way.😊It was very interesting😃. This tutorial will be very useful for beginners. 😉

  • @steviousmusic
    @steviousmusic Рік тому +3

    I just want to take some time to genuinely appreciate the effort that went into this video. Thank you!

  • @xXSebbeeXx
    @xXSebbeeXx 2 роки тому +19

    For anyone who has complications with installing the debug_toolbar in django:
    After the debug_toolbar is added to the `INSTALLED_APPS` inside the `settings.py` file, the url start point has to be configured in the `urls.py` file, as described at 45:35.
    However, I had to adapt the way the debug_toolbar is added to the `urlpatterns`, since `import debug_toolbar` showed me an error: `Import "debug_toolbar" could not be resolved`.
    I removed the `import debug_toolbar` from the top and changed the path(..)-entry of the `urlpatterns`-array in the following way:
    Instead of
    `path('__debug__/', include(debug_toolbar.urls))`
    I used
    `path('__debug__/', include('debug_toolbar.urls'))` // Note the single quotation marks, denoting a string object, around the argument of the include(..)-function.
    This resolved the issue for me. I assume there was a change in how apps are or can be referenced inside the `urlpatterns`-array, since the installation guide for the toolbar has changed from what is seen in the video to the page I could view, when writing this comment. Good luck, to anyone who ctrl-f's this comment :D.

    • @stephendoamekpor1671
      @stephendoamekpor1671 Рік тому +1

      I did same but toolbar is still not showing. Any help?

    • @yentranz
      @yentranz Рік тому

      ​@@stephendoamekpor1671 Try below:
      1. Add django-debug-toolbar’s URLs to your project’s URLconf:
      from django.urls import include, path
      urlpatterns = [
      # ...
      path('__debug__/', include('debug_toolbar.urls')),
      ]
      2. If the toolbar still doesnt show, try to kill the current session (Ctrl C), then run migrate command (python manage.py migrate), then run the server again, the toolbar should be displayed.

    • @jurre83
      @jurre83 Рік тому +3

      I've tried everything and the toolbar was still not showing. Then i tried IE instead of Chrome and it was showing!. To show it in Chrome i just had to open the server in an incognito window.

  • @narinderkaur2057
    @narinderkaur2057 2 роки тому

    Hello mosh thank you so much i am 12 years old and i watch our 6 hour python course and today i am working on a project of google

  • @ramymagdy3482
    @ramymagdy3482 2 роки тому +1

    Great descriptive tutorial, keep up the good work 👍

  • @joshua970101
    @joshua970101 2 роки тому +7

    I'm so grateful you made a Django course. I've been working my way through the documentation, but it's been hard to learn, so this is very helpful!

  • @kvdg7502
    @kvdg7502 2 роки тому +3

    Thank you so much Mosh. I have learnt a lot from your courses. You are the best tutor ever I have seen . I appreciate your hard work and the dedication with which you create courses is amazing.

  • @AllahomAnsorGaza
    @AllahomAnsorGaza 2 роки тому +1

    i took Node Js , React JS , React Native , Docker courses from you
    and i must say you Veryyyy GOOOOOD Teacher
    now i can call my self web developer or full stack developer
    i created many projects and all working GREAT
    i use all your tips and till now i didnt find better way than yours mosh
    Thank you Mosh you change my life
    god save you and your family :)

  • @asheleyhenrique4928
    @asheleyhenrique4928 2 роки тому

    This course is beeing the real course for beginners. I've not seen another course like this in my mother tongue and even in english

  • @adidebnag6086
    @adidebnag6086 2 роки тому +7

    Hello! I am having some trouble with the bit at 20:04, I am doing the same thing on a Windows computer, however, it does not create the new folder in the Explorer, and when I try to just run "python manage.py runserver" it returns an error. Is there any way to fix this?

  • @107madhu
    @107madhu 2 роки тому +3

    Hey@Mosh,
    Great video. what tool do you use to create the video? specially the animation part.. It looks really cool.

  • @clare9762
    @clare9762 2 роки тому +1

    For people on windows who had issues setting the interpreter up and the vscode terminal this is how I sorted it out.
    interpreter:
    - Commande Palette -> Preferences: Open Workspace Settings (JSON) (This creates the .vscode folder and an empty settings.json file)
    - Then add manually "python.defaultInterpreterPath": "**your path **\\Scripts\\python" (I put in "python.pythonPath" first as the video said but when I restarted VSCode I got an error that suggested that "python.defaultInterpreterPath" needed to be used instead. I still have both in the list but not sure if I need both.
    - restart VSCode
    VSCode terminal:
    I opened the terminal is VSCode and was getting an error because of what Execution_Policies is set to, I decided to solve it by clicking the down arrow in the top right of the terminal and chose to use Command Prompt instead.

  • @sarmadrafique426
    @sarmadrafique426 Рік тому +1

    Just an year ago you uploaded this tutorial. At that time you have 2 million subscribers. And now it's about 3 million. Congratulations Mosh. I am very curious to know What are we going to learn? What had mosh left untill now?

  • @29namankumar29
    @29namankumar29 2 роки тому +3

    Thank You for this course Mosh!

  • @olgaivanova5930
    @olgaivanova5930 2 роки тому +3

    Hey Mosh, what extension do you use to customize your terminal so that it shows the path and the git branch?

  • @customname4680
    @customname4680 2 місяці тому

    2024 and this is the best and most detailed course I have ever watched
    you break things down so well and your explanations are perfect
    I wish I could afford the whole course, but my country's exchange rate is killing me
    i'll try to save for it , might take me two years but would be worth it

  • @yevseldev
    @yevseldev 2 роки тому

    The most refreshing 1 hour of my life. Thanks Mosh

  • @Healthy_Mukbangs
    @Healthy_Mukbangs 2 роки тому +3

    Hope you’re well Mosh, May God bless you in all you do. So grateful for the courses on the website too

  • @Jwdsaidy
    @Jwdsaidy 2 роки тому +3

    Hello Sir,
    I can just say you are Awesome! You are a world class teacher.
    I have followed this Django one hour lesson step by step. I have thrice checked the steps for adding a debug toolbar, but it does not appear on my browser, I used Chrome, & Microsoft edge. Thank you sir.

    • @unzero3274
      @unzero3274 2 роки тому

      Did you manage to find a fix? Mine isn't showing up either

    • @sangkunpark7517
      @sangkunpark7517 2 роки тому +2

      Add followings on settings.py
      if DEBUG:
      import mimetypes
      mimetypes.add_type("application/javascript", ".js", True)

    • @yentranz
      @yentranz Рік тому

      Try below:
      1. Add django-debug-toolbar’s URLs to your project’s URLconf:
      from django.urls import include, path
      urlpatterns = [
      # ...
      path('__debug__/', include('debug_toolbar.urls')),
      ]
      2. If the toolbar still doesnt show, try to kill the current session (Ctrl C), then run migrate command (python manage.py migrate), then run the server again, the toolbar should be displayed.

  • @Armadurapersonal
    @Armadurapersonal 10 місяців тому

    thanks, i learned django a few years ago and needed a refresher

  • @thenorup
    @thenorup 7 місяців тому +1

    In case anybody else is confused:
    the bin folder is now called Scripts, at least in the current version of python/vscode

  • @chandraaaryal5844
    @chandraaaryal5844 2 роки тому +20

    Hi Mosh! Thank you so much for the great tutorial. But at one place I got stuck. In 19:05 I could set the path for python interpreter but the .vscode directory didn't come up and I cannot see settings.json file. I am on Windows and I did exactly the same thing. I dont know what wrong did I do. I have been doing that again and again but still the .vscode directory doesnot show up. Also I quit the server using ctrl+C. Thank you so much.

    • @natatut
      @natatut 2 роки тому +5

      I have the same issue. Did you find a solution?

    • @lovenoreus2804
      @lovenoreus2804 2 роки тому +1

      I would like to know too!

    • @shortintro189
      @shortintro189 2 роки тому

      How to fix it..? -- TypeError: fromisoformat: argument must be str in django model - python mange.py migrate

    • @christopherfalvey
      @christopherfalvey 2 роки тому +1

      Mosh, thanks for another great effort in your tutorials, but I am having the same problem on Macintosh. I have repeated all steps as best I can, but continue to come up against the Python Interpreter issue.

    • @evilpollination1916
      @evilpollination1916 2 роки тому

      Just saw the solution from another comment.
      For windows, instead of 'bin' use 'Scripts'.
      So instead of path\bin\python , it will be path\Scripts\python

  • @azwadrafique7082
    @azwadrafique7082 2 роки тому +4

    Fun fact, Mosh actually started recording the "First Django project section" on my birthday
    btw i struggled a little on the django part of ur previous 6 hour python tutorial so its really a wish come true, ty a lot

    • @taggebagge
      @taggebagge 2 роки тому +1

      Happy Birthday retroactively.

  • @tinabee4195
    @tinabee4195 2 роки тому +1

    Your the best . I'm 14 but you have taught me 3 languages thank you ❤️

  • @veliamomo6561
    @veliamomo6561 Рік тому

    thank you mosh, I got my first job by your ultimate Django course :)

  • @patriciasullera345
    @patriciasullera345 2 роки тому +22

    Hi, Mosh! This is a great tutorial and I've been following you the whole time but I didn't have an extra directory of .vscode with the settings.json on it. Btw, i'm on Windows 10. What might be the problem? Maybe I skipped something or what? Thanks a lot in advance!

    • @AtifKhan-cm8qv
      @AtifKhan-cm8qv 2 роки тому +5

      same and im on mac and i followed everything aswell did you get to fix it???

    • @yabetsmengistu3541
      @yabetsmengistu3541 2 роки тому +4

      Same here and I think it's because there is no bin directory in that path of my case

    • @marceloecco1044
      @marceloecco1044 2 роки тому

      same

    • @yabetsmengistu3541
      @yabetsmengistu3541 2 роки тому +4

      @@marceloecco1044 I don't remember how I fix it but, I think I use Script instead of bin

    • @marceloecco1044
      @marceloecco1044 2 роки тому +5

      @@yabetsmengistu3541 yeah, aparently for windows is Script not bin idk. Mine is working and i leave as Script

  • @SolutionTuts
    @SolutionTuts 2 роки тому +2

    Sir, I love your teaching style. I'm curious about the second part of Django, when it will be release.

    • @martynbirdem189
      @martynbirdem189 2 роки тому

      ua-cam.com/video/S5FzZPpqndY/v-deo.html Javascript tutorial easy example
      ua-cam.com/video/waXnjADEEAg/v-deo.html

  • @akshaygulabrao4423
    @akshaygulabrao4423 Рік тому

    I like that you use the super big font, so that we only need half the screen for the video. Thank you!

  • @trigon8715
    @trigon8715 2 роки тому

    Hats off to you how you cover the 1 hour topic into one minute 🙏🙏

  • @Jj-or5ix
    @Jj-or5ix 2 роки тому +10

    On my windows 10 pc, the link for the virtual env that I use in vscode goes like this: C:/Users...../storefront-..../Scripts/python
    Its Scripts, not bin like in the video

    • @TailFairy1234
      @TailFairy1234 2 роки тому

      I did this and nothing happened either, do you have any idea why?

    • @Jj-or5ix
      @Jj-or5ix 2 роки тому +1

      @@TailFairy1234 no idea, but I got some errors and after checking the whole code four times I just moved on to the official Django tutorial and everything is working fine. There must be something wrong with the versions.

    • @SandraWantsCoke
      @SandraWantsCoke 2 роки тому

      I solved it on Windows 10:
      If you see red text about not digitally signed, run this in the terminal. This stops working once the terminal is closed:
      Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
      Now you can re-run this script inside the terminal and voila, you have a virtual environment set up:
      C:/Users/YOURUSERNAME/.virtualenvs/PROJECTNAME-_RTtHxVdW/Scripts/Activate.ps1
      This is the link to your virtual environment and you can scroll up and it's at the very top of the terminal window, so you can copy paste it. Now you can python manage.py runserver and go to that URL which appears there and mine works!!! I spent so much time on this damn.
      Yes, python interpreter is in \Scripts\python on Windows

    • @user-ye4kv9ub9r
      @user-ye4kv9ub9r 2 роки тому +1

      use powershell from admin, type this "Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass" then type in vscode terminal C:/Users/[USERNAME]/.virtualenvs/storefront-LbyFxQp7[use your own here]/Scripts/Activate.ps1 and it works. Sad that i have to spend so much extra time to do smth like this instead of learning django

    • @SandraWantsCoke
      @SandraWantsCoke 2 роки тому +1

      @@user-ye4kv9ub9r Problem is, each time I open terminal I need to do that

  • @praveenkrishnan4935
    @praveenkrishnan4935 2 роки тому +7

    Mosh, will there be a Flask course in the future?

    • @martynbirdem189
      @martynbirdem189 2 роки тому

      ua-cam.com/video/S5FzZPpqndY/v-deo.html Javascript tutorial easy example
      ua-cam.com/video/waXnjADEEAg/v-deo.html

  • @kinarapandya2988
    @kinarapandya2988 Рік тому

    Thank you for the excellent quality tutorials Mosh. They are very helpful. Keep up the good work!.