1:15 Installing. Virtual environment 18:54 Set up code text editor 22:27 Django settings 29:48 Built-In components 46:22 New model fields 59:27 Custom homepage 1:04:08 URL routing 1:16:50 Django templating engine basics 1:23:59 Include template tag 1:49:09 Render data from the database with a model 2:06:50 Django model forms 2:35:33 Form widgets 2:41:29 Form validation methods 2:48:59 Initial values for forms 2:51:44 dynamic URL routing 3:00:00 Dynamic linking of URLs 3:03:10 In app URLs and Namespacing 3:15:42 Class based views - CreateView
If you are seeing error on section 8 like so: Operation Error No such table: main.auth_user__old then do this in powershell or terminal first used: pip install --upgrade django==2.1.5 Then I used python manage.py makemigrations then python manage.py migrate Then I used python manage.py runserver Worked like a charm,
I can't thank you enough for this tutorial, Django has been a thorn in my side for so long i was beginning to think i was never going to understand it, easy to understand, methodical and easily digestible. love it
I don't understand . Why isn't he explaining stuff. What is he doing. Why doesn't he tell what migrate does. And 100 things that he do. Will he explain later. If so why doesn't he say that he will explain later. It feels like that I should know what migrate is and other stuff that he just casually types there
@@nabbikill I have a good amount of experience with Python. Bad day maybe. Exhaustion from staying home all this time. I want to go out ,eat a pizza , go to mall and do some swimming . I am going crazy lol.
I was looking for a course of "Django" for developers where you don't want to waste so many hours in so basic things such as understanding MVC, how a web system works, ORM, instead I wanted to know the fundamentals of the framework and I have enjoyed so much this, I came from so many years as Java developer and I wanted to buy Python since has gained so much terrain and this guy sell it tome so dam well, thanks for your material man! it's really appreciated.
for anyone having a problem with the setup not working.. it might be because of the version.. currently the latest python doesn't support django 2.0.7.... you can either downgrade ur python ver or raise django version.. i had a hard time figuring this one out and so i wanted to help out.
This is outstanding. Reading some of the comments people say it's too fast paced...but I love its pace! It has taken me about 10 hours to the 3 hour mark because I have to pause, rewind, pause, etc... to figure out why my stuff doesn't match his. But I KNOW so much more about the what and why than if it was just follow along and he explained every little detail every time. I can wait to binge more of his videos!
Awesome tutorial. But in the second half, multiple ways were explained to do the same thing like using Forms in Django. We try the previous method and when we try to actually figure out that, all of a sudden we are told that it's not a good way to follow that method. Then we have to learn the new method and it's confusing most of the time. If that way of explaining some steps was avoided this video could have been shorter and much cleaner than this. Anyway, apart from that this is the best Django tutorial on UA-cam.
Actually im on a 3 month full-stack developer course and it is super intensive. This course helping me to learn fundamentals of django with a way i dont think i will forget. Thank you so much lecturer and freeCodeCamp for this great course.
One of the best tutorials on a specific programming topic I ever saw and used. For programmers in hurry, it is at the right pace, depth and width. Many thanks, really great work!
1. Create a Blank Django Project 14:40 2. Setup your Code Text Editor 18:54 3. Settings 22:26 4. Built-In Components 29:47 5. Your First App Component 33:57 6 . Create Product Objects in the Python Shell 42:34 7. New Model Fields 46:18 8. Change a Model 52:52 9. Default Homepage to Custom Homepage 59:27 10. URL Routing and Requests 1:04:47 11. Django Templates 1:10:22 12. Django Templating Engine Basics 1:16:49 13. Include Template Tag 1:23:59 14. Rendering Context in a Template 1:26:51 15. For Loop in a Template 1:33:21 16. Using Conditions in a Template 1:37:01 17. Template Tags and Filters 1:42:16 18. Render Data from the Database with a Model 1:49:07 19. How Django Templates Load with Apps 1:59:55 20. Django Model Forms 2:06:50 21. Raw HTML Form 2:14:17 22. Pure Django Form 2:25:33 23. Form Widgets 2:35:31 24. Form Validation Methods 2:41:29 25. Initial Values for Forms 2:48:59
At the start I was really annoyed how detailed you explain everything because I already tested django a bit. But going further and further I got more thankful and more thankful that you explain everything that detailed. You are doing a great job!
Ehy Ehy Ehy, this video is a gem. Already one hour into it and gave me more than all other tutorials I followed(three). This guy got real talent on explaining , the fact that repeat concept over and over and make yourself delete/change the directories all the time ,make the concept going deep into my brain and eventually everything clicks. Great!!!
Got a new job where I need to use Django. Already quit my last job. Only got a couple of days to get either relatively good at it, or jobless... and found this gem. Can't thank you enough.
@@hunggamerofficial3252yeah, Django in Pycharm is pretty useful. It's almost the same always. I have been combining some videos with the oficial documentation. Anyway the best way to learn it is by practicing it.
hey man. i just want to say i greatly appreciate this tutorial. i was struggling for hours trying to even get django started and write a simple "hello world" application but kept running into problems and after about 10 hours i finally stumbled on your video and you solved all my issues perfectly. thank u so much man.
ok he a life saver i watched one vid of an indian guy he completely confused me when i came to him i understood alot am not lost am following steadly God bless u and am not done with the course yet i started 2day
I Dont usually write youtube comments, but for this one I have to. Amazing tutorial. Read a lot of tutorials before watching this video and almost gave up on installation. You explained every concept very well throughout the whole video. AMAZING! I am halfway through, need to pause the video every 20 sec to understand it fully. Appreciate the tutorial a lot.
The Python dict string uses single quotation marks, and JSON enforces double quotation marks. We should use ' ' single quotes instead of double quotes !
i think this tutorial overcomplicates the process of installing django and starting a new project. for a beginner it is absolutely necessary to just start with the very basics yet here we are introduced to the intricacies of the virtual env.
I actually think its fine, because if you are going to learn django virtual environments are something that is really important. Especially if you want to deploy your website on something like heroku. So getting used to it from the start is very useful.
I dont think he explained why one should have a virtualenv.. Can someone explain this to me, please? I only heard him saying: "So that we all start from the same place" or something..
@@Sebastian-69420 Here's an example. Lets say you're using a library. You start developing your application using this version. Lets say 2 months from now, a new version drops with better features, more functionality, etc and you want to use it. So you update it. However, this new version may have changed certain core functionalities and now your app doesn't work, since it uses features from a prior version that no longer exist. If you use a venv, you can have one venv with the old version that you can still use for development and another venv with the newer version. Another reason to create venvs is when you install libraries that depend on various other libraries, ex: pytorch, tensorflow, so that there are no dependancy conflicts. That's why the best practice is to leave python as is once installed and create a venv for every project.
btw its in the description ⭐️Course Contents ⭐️ ⌨️ (0:00:00) 1 - Welcome ⌨️ (0:01:14) 2 - Installing to Get Started ⌨️ (0:05:02) 3 - Setup your Virtual Environment for Django ⌨️ (0:14:39) 4 - Create a Blank Django Project ⌨️ (0:18:54) 5 - Setup Your Code Text Editor ⌨️ (0:22:27) 6 - Settings ⌨️ (0:29:58) 7 - Built-In Components ⌨️ (0:33:57) 8 - Your First App Component ⌨️ (0:42:34) 9 - Create Product Objects in the Python Shell ⌨️ (0:46:18) 10 - New Model Fields ⌨️ (0:52:52) 11 - Change a Model ⌨️ (0:59:27) 12 - Default Homepage to Custom Homepage ⌨️ (1:04:48) 13 - URL Routing and Requests ⌨️ (1:10:23) 14 - Django Templates ⌨️ (1:16:50) 15 - Django Templating Engine Basics ⌨️ (1:24:00) 16 - Include Template Tag ⌨️ (1:26:49) 17 - Rendering Context in a Template ⌨️ (1:33:21) 18 - For Loop in a Template ⌨️ (1:37:01) 19 - Using Conditions in a Template ⌨️ (1:42:17) 20 - Template Tags and Filters ⌨️ (1:48:59) 21 - Render Data from the Database with a Model ⌨️ (1:59:55) 22 - How Django Templates Load with Apps ⌨️ (2:06:50) 23 - Django Model Forms ⌨️ (2:14:16) 24 - Raw HTML Form ⌨️ (2:25:33) 25 - Pure Django Form ⌨️ (2:35:30) 26 - Form Widgets ⌨️ (2:41:29) 27 - Form Validation Methods ⌨️ (2:48:59) 28 - Initial Values for Forms ⌨️ (2:51:42) 29 - Dynamic URL Routing ⌨️ (2:54:26) 30 - Handle DoesNotExist ⌨️ (2:56:24) 31 - Delete and Confirm ⌨️ (2:58:24) 32 - View of a List of Database Objects ⌨️ (3:00:00) 33 - Dynamic Linking of URLs ⌨️ (3:01:17) 34 - Django URLs Reverse ⌨️ (3:03:10) 35 - In App URLs and Namespacing ⌨️ (3:07:35) 36 - Class Based Views - ListView ⌨️ (3:10:45) 37 - Class Based Views - DetailView ⌨️ (3:15:38) 38 - Class Based Views - CreateView and UpdateView ⌨️ (3:21:23) 39 - Class Based Views - DeleteView ⌨️ (3:24:02) 40 - Function Based View to Class Based View ⌨️ (3:27:15) 41 - Raw Detail Class Based View ⌨️ (3:30:31) 42 - Raw List Class Based View ⌨️ (3:33:32) 43 - Raw Create Class Based View ⌨️ (3:26:03) 44 - Form Validation on a Post Method ⌨️ (3:37:58) 45 - Raw Update Class Based View ⌨️ (3:41:13) 46 - Raw Delete Class Based View ⌨️ (3:42:17) 47 - Custom Mixin for Class Based Views
only been doing django for 3 or 4 months now. just discovered the right click 'go to definition' feature. oh my days my world has been changed now. great video thanks
thanks! i'm PHP native devs, after watching your videos, i understand the basic "logic" of Django, not that far from PHP just like PHP without bracket and close tag, but when it comes into templating surprisingly i can understand well because it's just like PHP
There's a stark difference between the first two hours and the rest of the video. The first two hours are well-explained and logically structured. Somewhere around the two-hour mark chaos begins. Something is being done on the screen, and while I was able to repeat this stuff, I lost all understanding of the underlying logic and structure.
For anyone that doesn't already have python3 installed, when you get to the point of pip installing django, if it sends an error saying it can only find 1.whatever versions of django, just use pip3 install django==2.0.7 . This will ensure that a python3 compatible version of django is installed. If you're on mac and dont have pip3 just, brew install pip3.
watched for one and a half hour, I like this tutorial a lot. I tried to learn Django and bootstrap before learning these basic concepts, it was very hard for me to understand. Now I can understand a lot. Thanks.
At " (2:48:59) 28 - Initial Values for Forms " the code just changed without saying anything. At (2:49:45) you use a new URL "/inital/". This confused me realy a lot. Up until this point it was a good tutorial i learned a lot. Thanks
Thanks for the videos. Have a question. In video 28 - Initial Values for Forms 2:48:59, you begin talking about render_initial_data. Unless I missed something, this topic was jumped into without providing a transition from the previous video 27 - Form Validation Methods 2:41:29. Video 28, products->views.py starts out with only one function - render_initial_data. What happened to product_create_view and product_detail_view functions that were in video 27.
After some kindof struggle and and working around, I finally finish the 4-hour crash course about django, I have to say I only know the most superficial surface of all that part, the next part is html and css and javascript, and there is still a lot more stuffs in this world, I have to say, a good teacher is really valuabl, and actually the most valuable thing is that your ability to learn no matter how hard it seems to be at the beginning, in the end, everything will continuely become easier and easier.
Now this is something that a beginner wants. We are beginners. We don't want to make a massive project to get started with any technology. We want to understand the basics and have a basic idea of everything that's written in these files. Most people skip this part and just want to tech us how to create Instagram. We don't understand what the hell they are teaching and get overwhelmed by these giant files and start loosing hope
I though some folks might find it interesting that when working on block content (at 01:20:13), you cannot write {%block content %} {% end block %} twice, in a HTML comment or otherwise, without throwing the error " 'block' tag with name 'content' appears more than once". I also tried using the hash (# and ##) symbols to comment it out and Django still threw the error. I think its important to remember that your code is being read by Django and it interprets HTML differently than running it directly in browser. Hit that save button like nobody is watching, but most of all, happy coding! Django version 3.1.3; Python Version 3.9.0; (regrettably) running Windows 10 Home on Dell G3 3579 Signature Edition; Intel(R) Core(TM) i5-8300H CPU @ 2.30GHZ 2.30 GHZ
You cleared most of my doubts. Thanks for this Tutorial and for succeeding such a big time. You really deserve 10000000000000000000000000000000000000000000000000000000 subscribers for this tutorial.
Took me a few retries but I finally finished this walkthrough. This course felt a bit rough around the edges, but I think that was mainly an issue of speed; with the course set to 0.75x playback speed I found that very manageable. I wish the course were organized just a tad bit different, I generally prioritize a certain kind of logical progression over the speed to running code. It is one of those things where I just want slightly different things out of a course, so I put the onus on myself to make a tutorial that is more my style. This guy did a great job and I think succinctly achieved his objective of compacting an introductory django course into 4 hours of content. I'm just a django in 14 hours kind of gal. ;) If you're thankful and you know it, let ads run! Thanks FCC! Happy coding everyone!
OMG this is amazing! Best complete tutorial on Django and installing a Django project in virtual environments along with showing us the intricacies of creating a virtualenv and how to reactivate it for your projects. Amazing so far! Looking forward to knowing Django inside out after so many tutorials missing this and that!
Watching this to learn Python Django, even I don't understand much English, so I just use google translation, learning a lot from this video. Thanks the man!!
Yeah course is outdated but still 95% stuffs are same...and guys trust me this dude got the real stuffs that you need to know about django. i have seen lots of django course but they didn't cover many important stuffs but this guy covered those all :D
great course, after 2 hours things are getting more complicated for a beginner so you might wanna put speed 0.75, pause after each module , do what u saw on the video and try to undestand what you did, Django documentation is great to help you with that
Really nice explained, just watched this video 45 minutes, and now I can understand some concepts which were so hard for me before, thank you very much
One useful Tip: Whenever using ctrl-break to quit the Django server, sometimes the ctrl-break does not work. So what you can do, is to press CTRL-C to quit the server instead.
Really loving this tutorial. I always thought setting up a website in Python was messy and complicated. Having come from a PHP/Laravel background I've realised that Python/Django is a much superior product and does a lot of the "grunt" work for you in the background.
Here's how to install django on Windows 10: 1. Install python 2. After Installing python, Run Windows Powershell as an administrator and type the following command: pip install virtualenvwrapper-win 3. Then create a virtual environment for your project: mkvirtualenv myproject 4. now Django can be installed easily using pip within your virtual environment. In the command prompt, ensure your virtual environment is active, and execute the following command:
Congratulations, your complete course for beginners helped me a lot, you're a great teacher. Thank you very much, I hope you can bring an advanced course soon.
OK, Kudos, He did explain better as he moved on and showed three different ways to create virtual environments in precise details. All my questions got answered. Yay! And I have it working on both Windows and the Mac.
Obviously a lot of hard work and its appreciated... but the second half needs a lot of work on pacing... seems like its flying all over the place and super hard to follow. Just too many code windows open at once and too much digression into altnerate ways to accomplish it... (I get the intention... but really is too much too fast).
The beginning was great, the last half was a bit rushed. I wish it would be a bit closer to actual existing scenarios and when to use what. Although I respect that this is build up like a documentation. As a beginner I would love to focus on the things that are most important when starting to build something with Django, instead of getting all pieces of information at ones and not be able to learn because of losing the context. But still a great course. That's only my habit to learn, I want to instantly use it in a real-world scenario to help me to remember and understand all. At the beginning you focused more on that. Thanks neither way.
Hi! Great tutorial. Since it's more than a year old now I like to share that: November 2020: I used 'conda' for virtual environmentes and 'django' 3.1.3, and it all worked fine!
Amazing tutorial, you took your time and explained everything. So many videos out there that copy and paste code without even explaining what anything does.
Goes great guns till section 28, sucks after that. Goes way too fast with too many abrupt alterations to the code behind the scenes which causes a lot of trouble catching up to, almost seems like he's created a new file altogether. Persisted but couldn't watch it beyond section 34. Mind you, it's a great video - really valuable and helpful, just fix the second half!! Cheers..
The first half of your video was great and I enjoyed it overall. But I'd like to make some constructive criticism: I would have much rather seen how to do a slug based lookup, or a bit about front-end users, or some real world validation, etc... than watching you redo the views 3 times using different methods. This is especially no good for beginners. Too many design choices can be absolutely paralyzing for a beginner. They will spend too much time deciding which to use when they could be writing some app logic and getting real experience. And if you focus on one method they will become more competent and confident in it. It'll also be more memorable. Perhaps teaching the first two methods could be justified, but there really was no need to rewrite the whole thing with raw class based views. Do beginners really need that info? At most it deserved was a mention that you could also do it that way.
1:15 Installing. Virtual environment
18:54 Set up code text editor
22:27 Django settings
29:48 Built-In components
46:22 New model fields
59:27 Custom homepage
1:04:08 URL routing
1:16:50 Django templating engine basics
1:23:59 Include template tag
1:49:09 Render data from the database with a model
2:06:50 Django model forms
2:35:33 Form widgets
2:41:29 Form validation methods
2:48:59 Initial values for forms
2:51:44 dynamic URL routing
3:00:00 Dynamic linking of URLs
3:03:10 In app URLs and Namespacing
3:15:42 Class based views - CreateView
Thanks man there's the upvote for u
you're an internet hero!
Life saver
people are awesome
2:51:44 dynamic URL routing
I often look in the comments before watching a big video like this to not loose time.. if you are doing this, you just find THE VIDEO!!
Should I give it a watch? In his video, he's working with Django 2.0, but the most latest version is 4.0. Let me know quickly-I'm waiting.
@@JackDaniels08 For me, this video helped to get the concepts about how a Django project is structured, so it kinda worth it
If you are seeing error on section 8 like so: Operation Error No such table: main.auth_user__old
then do this in powershell or terminal
first used: pip install --upgrade django==2.1.5
Then I used python manage.py makemigrations
then python manage.py migrate
Then I used python manage.py runserver
Worked like a charm,
@@grabacionesfiuba8529 welcome, and I am a girl :)
@@grabacionesfiuba8529 No worries.:)
I wish I hadn't spent 2 hours before solving it prior to finding this comment : )). Your comm should be right under the first guy with 1.2k+ likes.
MVP
I can't thank you enough for this tutorial, Django has been a thorn in my side for so long i was beginning to think i was never going to understand it, easy to understand, methodical and easily digestible. love it
If you're watching this 2023, you can use more recent versions of Django, that's what I did, I had no problemas at all.
Thanks bro
Thanks bro 🙏
2024
Is this a complete django course ?? Can I start this ??
😊❤😂
@@ehsankalateh6785.
Looking for Django Unchained. Ended up becoming a programmer. Thanks UA-cam.
Jokes aside, great video thank you very much :)
I don't understand . Why isn't he explaining stuff. What is he doing. Why doesn't he tell what migrate does. And 100 things that he do. Will he explain later. If so why doesn't he say that he will explain later. It feels like that I should know what migrate is and other stuff that he just casually types there
@@nabbikill I have a good amount of experience with Python. Bad day maybe. Exhaustion from staying home all this time. I want to go out ,eat a pizza , go to mall and do some swimming . I am going crazy lol.
@@siddharthbisht8522 lockdown is getting u fam
@@11hamma its getting all of us😞
@@claw1479 truuuee 😔😔
I was looking for a course of "Django" for developers where you don't want to waste so many hours in so basic things such as understanding MVC, how a web system works, ORM, instead I wanted to know the fundamentals of the framework and I have enjoyed so much this, I came from so many years as Java developer and I wanted to buy Python since has gained so much terrain and this guy sell it tome so dam well, thanks for your material man! it's really appreciated.
for anyone having a problem with the setup not working.. it might be because of the version..
currently the latest python doesn't support django 2.0.7.... you can either downgrade ur python ver or raise django version.. i had a hard time figuring this one out and so i wanted to help out.
Thanks a lot. i almost ran mad here.😂😂😂😂😂😂
I met this guy in real life once, super cool dude! Glad to see him succeeding big time! 👍
wat? in real life? were?
@@prettycode4028 janitor at his university
@@rabeast1991 you must be kidding me
@@divancode3725 😂😂😂😂
@Saketh p ?
I am giving this man a hands down 🙌 for standing 4 hours just teach us guys..
This has got to be one of the greatest channels on all of UA-cam, plain and simple.
I 9 o
This is outstanding. Reading some of the comments people say it's too fast paced...but I love its pace! It has taken me about 10 hours to the 3 hour mark because I have to pause, rewind, pause, etc... to figure out why my stuff doesn't match his. But I KNOW so much more about the what and why than if it was just follow along and he explained every little detail every time. I can wait to binge more of his videos!
Awesome tutorial. But in the second half, multiple ways were explained to do the same thing like using Forms in Django. We try the previous method and when we try to actually figure out that, all of a sudden we are told that it's not a good way to follow that method. Then we have to learn the new method and it's confusing most of the time. If that way of explaining some steps was avoided this video could have been shorter and much cleaner than this. Anyway, apart from that this is the best Django tutorial on UA-cam.
so far , this is the best tutorial for django for absolute begginers , this is even better than paid courses i purchased , thank you man
Actually im on a 3 month full-stack developer course and it is super intensive. This course helping me to learn fundamentals of django with a way i dont think i will forget. Thank you so much lecturer and freeCodeCamp for this great course.
One of the best tutorials on a specific programming topic I ever saw and used. For programmers in hurry, it is at the right pace, depth and width. Many thanks, really great work!
mhen, you couldn't have said it any better... Great for beginners
1. Create a Blank Django Project 14:40
2. Setup your Code Text Editor 18:54
3. Settings 22:26
4. Built-In Components 29:47
5. Your First App Component 33:57
6 . Create Product Objects in the Python Shell 42:34
7. New Model Fields 46:18
8. Change a Model 52:52
9. Default Homepage to Custom Homepage 59:27
10. URL Routing and Requests 1:04:47
11. Django Templates 1:10:22
12. Django Templating Engine Basics 1:16:49
13. Include Template Tag 1:23:59
14. Rendering Context in a Template 1:26:51
15. For Loop in a Template 1:33:21
16. Using Conditions in a Template 1:37:01
17. Template Tags and Filters 1:42:16
18. Render Data from the Database with a Model 1:49:07
19. How Django Templates Load with Apps 1:59:55
20. Django Model Forms 2:06:50
21. Raw HTML Form 2:14:17
22. Pure Django Form 2:25:33
23. Form Widgets 2:35:31
24. Form Validation Methods 2:41:29
25. Initial Values for Forms 2:48:59
I took many django courses without totally understanding what I was doing and learning but now I understood everything. I thank god for your existance
At the start I was really annoyed how detailed you explain everything because I already tested django a bit. But going further and further I got more thankful and more thankful that you explain everything that detailed. You are doing a great job!
What is the name of this tutor
He is so good of a computer techie/programmer that he barely looks into his keyboard while typing codes and knows a lot of coding shortcuts.
Ehy Ehy Ehy, this video is a gem. Already one hour into it and gave me more than all other tutorials I followed(three). This guy got real talent on explaining , the fact that repeat concept over and over and make yourself delete/change the directories all the time ,make the concept going deep into my brain and eventually everything clicks. Great!!!
8
8
Got a new job where I need to use Django. Already quit my last job. Only got a couple of days to get either relatively good at it, or jobless... and found this gem. Can't thank you enough.
So how did it go? Did this video get you the knowledge you needed.? If so how long did it take you?
django is quite the framework! its a little headache that turns into blissful experience once you understand the concepts
Do you use Pycharm to learn Django?
In this video, it's all about Sublime Text and CMD
@@hunggamerofficial3252 I use pycharm
@@RoylanMartinez
So do you know how i can use Django in Pycharm????
@@hunggamerofficial3252yeah, Django in Pycharm is pretty useful. It's almost the same always. I have been combining some videos with the oficial documentation. Anyway the best way to learn it is by practicing it.
What about anaconda ?
hey man. i just want to say i greatly appreciate this tutorial. i was struggling for hours trying to even get django started and write a simple "hello world" application but kept running into problems and after about 10 hours i finally stumbled on your video and you solved all my issues perfectly. thank u so much man.
Kudos, this is one of the best tutorials I've ever followed. Doesn't waste time on trivial stuff and explains everything perfectly. 10/10
which Django version did you install
@@svdfxd me 3.0.4
ok he a life saver i watched one vid of an indian guy he completely confused me when i came to him i understood alot am not lost am following steadly God bless u and am not done with the course yet i started 2day
Fell asleep and woke up here
Yessssss😂😂😂😂😂😂
Yep same here
Same with me
I Dont usually write youtube comments, but for this one I have to. Amazing tutorial. Read a lot of tutorials before watching this video and almost gave up on installation. You explained every concept very well throughout the whole video. AMAZING! I am halfway through, need to pause the video every 20 sec to understand it fully. Appreciate the tutorial a lot.
Finally Done! worth it !
1:32:25 "It's not a bug, it's a feature."
Sadly this line did not work on my professor...
Lol
The Python dict string uses single quotation marks, and JSON enforces double quotation marks.
We should use ' ' single quotes instead of double quotes !
silicon valley
@@bsBakchodi does not work
I'm 14 years old programmer in myanmar.
Thank you for this tutorials
i think this tutorial overcomplicates the process of installing django and starting a new project. for a beginner it is absolutely necessary to just start with the very basics yet here we are introduced to the intricacies of the virtual env.
I actually think its fine, because if you are going to learn django virtual environments are something that is really important. Especially if you want to deploy your website on something like heroku. So getting used to it from the start is very useful.
I dont think he explained why one should have a virtualenv.. Can someone explain this to me, please? I only heard him saying: "So that we all start from the same place" or something..
@@Sebastian-69420 Here's an example.
Lets say you're using a library. You start developing your application using this version. Lets say 2 months from now, a new version drops with better features, more functionality, etc and you want to use it. So you update it. However, this new version may have changed certain core functionalities and now your app doesn't work, since it uses features from a prior version that no longer exist. If you use a venv, you can have one venv with the old version that you can still use for development and another venv with the newer version.
Another reason to create venvs is when you install libraries that depend on various other libraries, ex: pytorch, tensorflow, so that there are no dependancy conflicts.
That's why the best practice is to leave python as is once installed and create a venv for every project.
@@pchandrasekaran1595 thanks! Good explanation :)
The very first useful channel that I found when I was starting Django last year. 👌
I love this guy, clear English speaking, well prepare materials as well as clean chapter arrangement. Very helpful video. Thank you so much!
btw its in the description
⭐️Course Contents ⭐️
⌨️ (0:00:00) 1 - Welcome
⌨️ (0:01:14) 2 - Installing to Get Started
⌨️ (0:05:02) 3 - Setup your Virtual Environment for Django
⌨️ (0:14:39) 4 - Create a Blank Django Project
⌨️ (0:18:54) 5 - Setup Your Code Text Editor
⌨️ (0:22:27) 6 - Settings
⌨️ (0:29:58) 7 - Built-In Components
⌨️ (0:33:57) 8 - Your First App Component
⌨️ (0:42:34) 9 - Create Product Objects in the Python Shell
⌨️ (0:46:18) 10 - New Model Fields
⌨️ (0:52:52) 11 - Change a Model
⌨️ (0:59:27) 12 - Default Homepage to Custom Homepage
⌨️ (1:04:48) 13 - URL Routing and Requests
⌨️ (1:10:23) 14 - Django Templates
⌨️ (1:16:50) 15 - Django Templating Engine Basics
⌨️ (1:24:00) 16 - Include Template Tag
⌨️ (1:26:49) 17 - Rendering Context in a Template
⌨️ (1:33:21) 18 - For Loop in a Template
⌨️ (1:37:01) 19 - Using Conditions in a Template
⌨️ (1:42:17) 20 - Template Tags and Filters
⌨️ (1:48:59) 21 - Render Data from the Database with a Model
⌨️ (1:59:55) 22 - How Django Templates Load with Apps
⌨️ (2:06:50) 23 - Django Model Forms
⌨️ (2:14:16) 24 - Raw HTML Form
⌨️ (2:25:33) 25 - Pure Django Form
⌨️ (2:35:30) 26 - Form Widgets
⌨️ (2:41:29) 27 - Form Validation Methods
⌨️ (2:48:59) 28 - Initial Values for Forms
⌨️ (2:51:42) 29 - Dynamic URL Routing
⌨️ (2:54:26) 30 - Handle DoesNotExist
⌨️ (2:56:24) 31 - Delete and Confirm
⌨️ (2:58:24) 32 - View of a List of Database Objects
⌨️ (3:00:00) 33 - Dynamic Linking of URLs
⌨️ (3:01:17) 34 - Django URLs Reverse
⌨️ (3:03:10) 35 - In App URLs and Namespacing
⌨️ (3:07:35) 36 - Class Based Views - ListView
⌨️ (3:10:45) 37 - Class Based Views - DetailView
⌨️ (3:15:38) 38 - Class Based Views - CreateView and UpdateView
⌨️ (3:21:23) 39 - Class Based Views - DeleteView
⌨️ (3:24:02) 40 - Function Based View to Class Based View
⌨️ (3:27:15) 41 - Raw Detail Class Based View
⌨️ (3:30:31) 42 - Raw List Class Based View
⌨️ (3:33:32) 43 - Raw Create Class Based View
⌨️ (3:26:03) 44 - Form Validation on a Post Method
⌨️ (3:37:58) 45 - Raw Update Class Based View
⌨️ (3:41:13) 46 - Raw Delete Class Based View
⌨️ (3:42:17) 47 - Custom Mixin for Class Based Views
only been doing django for 3 or 4 months now. just discovered the right click 'go to definition' feature. oh my days my world has been changed now. great video thanks
1:12:15 I thought you just shut down and went into recovery mode. Awesome tut dude, thank you!
i never ever comment on tutorial videos...u made me to do. u rocks bro...the way u explaining was good and clean...
thanks! i'm PHP native devs, after watching your videos, i understand the basic "logic" of Django, not that far from PHP just like PHP without bracket and close tag, but when it comes into templating surprisingly i can understand well because it's just like PHP
There's a stark difference between the first two hours and the rest of the video. The first two hours are well-explained and logically structured. Somewhere around the two-hour mark chaos begins. Something is being done on the screen, and while I was able to repeat this stuff, I lost all understanding of the underlying logic and structure.
doing some stuff then deleating some just for sake of showing something and doing it really fast doesnt help anything but makes it super boring
For anyone that doesn't already have python3 installed, when you get to the point of pip installing django, if it sends an error saying it can only find 1.whatever versions of django, just use pip3 install django==2.0.7 . This will ensure that a python3 compatible version of django is installed.
If you're on mac and dont have pip3 just, brew install pip3.
Perfect. Works like a charm on Linux Mint 19.1 (Tessa). Thank you for that!
watched for one and a half hour, I like this tutorial a lot. I tried to learn Django and bootstrap before learning these basic concepts, it was very hard for me to understand. Now I can understand a lot. Thanks.
Coronavirus is a blessing in disguise since I have free time to learn this.
BrightCode Me too 🙂
same bro
100% utilise the time!
Because you and some others get extra time or time to build up their skill does not mean it is a blessing for everyone.
@@prosunsett3045 He states that it is a blessing for him not for everyone, pipe down boi!
I like that you actually teach :)
Not just copy-paste the whole template and BOOM, you've created a website
Greetings from Angola ( Africa ) thanks a lot
I want to go to wakanda
At " (2:48:59) 28 - Initial Values for Forms " the code just changed without saying anything. At (2:49:45) you use a new URL "/inital/". This confused me realy a lot.
Up until this point it was a good tutorial i learned a lot. Thanks
thanks for the heads up
At 2020 I feel using the Django version 3.0.2 is preferable you can modify the routine he does during this tutorial to match the update... Goodluck
Hello, is there a significant difference in the code one needs to write between version 2 and 3?
He is the best programming teacher I have ever seen in my entire life!!!
"Does Django scale?"-that is an interesting question to look at.
Question: **[closed]**
I am just watching this amazing video, I get error every time i try to use an older version of Django,
but it works pretty well on new version.
Thanks for the videos. Have a question. In video 28 - Initial Values for Forms 2:48:59, you begin talking about render_initial_data. Unless I missed something, this topic was jumped into without providing a transition from the previous video 27 - Form Validation Methods 2:41:29. Video 28, products->views.py starts out with only one function - render_initial_data. What happened to product_create_view and product_detail_view functions that were in video 27.
comment def product_create_view from views, then update urls.py (replace product_create_view with render_initial_data)
After some kindof struggle and and working around, I finally finish the 4-hour crash course about django, I have to say I only know the most superficial surface of all that part, the next part is html and css and javascript, and there is still a lot more stuffs in this world, I have to say, a good teacher is really valuabl, and actually the most valuable thing is that your ability to learn no matter how hard it seems to be at the beginning, in the end, everything will continuely become easier and easier.
Awesome vid man! About halfway through it and am already beginning to utilise all the concepts and techniques from your video in my own projects!
Now this is something that a beginner wants.
We are beginners.
We don't want to make a massive project to get started with any technology.
We want to understand the basics and have a basic idea of everything that's written in these files.
Most people skip this part and just want to tech us how to create Instagram. We don't understand what the hell they are teaching and get overwhelmed by these giant files and start loosing hope
I though some folks might find it interesting that when working on block content (at 01:20:13), you cannot write {%block content %} {% end block %} twice, in a HTML comment or otherwise, without throwing the error " 'block' tag with name 'content' appears more than once". I also tried using the hash (# and ##) symbols to comment it out and Django still threw the error. I think its important to remember that your code is being read by Django and it interprets HTML differently than running it directly in browser.
Hit that save button like nobody is watching, but most of all, happy coding!
Django version 3.1.3;
Python Version 3.9.0;
(regrettably) running Windows 10 Home on Dell G3 3579 Signature Edition;
Intel(R) Core(TM) i5-8300H CPU @ 2.30GHZ 2.30 GHZ
I literally just woke up to this
Me too hahahaaahhaha
For anyone who receives an error when running djago-admin startproject I installed the latest version of Django (4.0.3) and it fixed the issue.
You cleared most of my doubts. Thanks for this Tutorial and for succeeding such a big time. You really deserve 10000000000000000000000000000000000000000000000000000000 subscribers for this tutorial.
OMG, this is the best video I've seen explaining Django, in fact I am creating my own blog based on this video! thank you so much
Took me a few retries but I finally finished this walkthrough. This course felt a bit rough around the edges, but I think that was mainly an issue of speed; with the course set to 0.75x playback speed I found that very manageable. I wish the course were organized just a tad bit different, I generally prioritize a certain kind of logical progression over the speed to running code. It is one of those things where I just want slightly different things out of a course, so I put the onus on myself to make a tutorial that is more my style. This guy did a great job and I think succinctly achieved his objective of compacting an introductory django course into 4 hours of content. I'm just a django in 14 hours kind of gal. ;)
If you're thankful and you know it, let ads run! Thanks FCC! Happy coding everyone!
And here i was watching in 1.75x 😐
when i don't understand somewhere, i just stop and go to the tutorial or ask chatgpt.
Really appreciate the no adds feature
SO GREAT GUYS - we gained SO MUCH - thank you - we loved the 'big video' idea - we chipped away at your 4hrs over 2 days and love it!
OMG this is amazing! Best complete tutorial on Django and installing a Django project in virtual environments along with showing us the intricacies of creating a virtualenv and how to reactivate it for your projects. Amazing so far! Looking forward to knowing Django inside out after so many tutorials missing this and that!
Watching this to learn Python Django, even I don't understand much English, so I just use google translation, learning a lot from this video. Thanks the man!!
Woke up to this
Yeah course is outdated but still 95% stuffs are same...and guys trust me this dude got the real stuffs that you need to know about django.
i have seen lots of django course but they didn't cover many important stuffs but this guy covered those all :D
I love the lesson as much as index on description! thank you a lot
Thank you!! I would've never expanded the description and found that!
great course, after 2 hours things are getting more complicated for a beginner so you might wanna put speed 0.75, pause after each module , do what u saw on the video and try to undestand what you did, Django documentation is great to help you with that
Love from India
Followed your tutorial, did some more work on my own and got my first full stack web dev job - Thx a ton 👍
first two hours = 1.25x speed
second two hours = .5x speed
lol you really turn up the gears half way through hahaha
last 1hr gave my a headache! too fast :D
Oh my god such a help at the start haha
I did the same and he sounds drunk on .5x
haha, exactly..
its actually really helpful to catch up with him you do a lot of things on your own and you actually lean how to do it
Really nice explained, just watched this video 45 minutes, and now I can understand some concepts which were so hard for me before, thank you very much
Great course! found It really valuable and I'm using it to create my own site now. Thank you for making this so accessible for us!
i really love the way you teach ,so comforting ,no stress at all
One useful Tip: Whenever using ctrl-break to quit the Django server, sometimes the ctrl-break does not work. So what you can do, is to press CTRL-C to quit the server instead.
it has always been Ctrl-C!!
I wanted to say thank you so much. It's an amazing tutorial. I am making huge progress to build my website by watching this video.
Really loving this tutorial. I always thought setting up a website in Python was messy and complicated. Having come from a PHP/Laravel background I've realised that Python/Django is a much superior product and does a lot of the "grunt" work for you in the background.
can we just appreciate how all of his forms had "tesla" be an autofill to it
I haven't got to the end yet but great tutorial so far. Very informative! It solved a lot of questions that I had!
Here's how to install django on Windows 10:
1. Install python
2. After Installing python, Run Windows Powershell as an administrator and type the following command: pip install virtualenvwrapper-win
3. Then create a virtual environment for your project:
mkvirtualenv myproject
4. now Django can be installed easily using pip within your virtual environment.
In the command prompt, ensure your virtual environment is active, and execute the following command:
pip install django
OHH THANK YOU SO MUCH
Congratulations, your complete course for beginners helped me a lot, you're a great teacher. Thank you very much, I hope you can bring an advanced course soon.
OK, Kudos, He did explain better as he moved on and showed three different ways to create virtual environments in precise details. All my questions got answered. Yay! And I have it working on both Windows and the Mac.
Obviously a lot of hard work and its appreciated... but the second half needs a lot of work on pacing... seems like its flying all over the place and super hard to follow. Just too many code windows open at once and too much digression into altnerate ways to accomplish it... (I get the intention... but really is too much too fast).
yeah...the first half was really nice...but in the second half, he became really fast.....and by the end, he became super fast!
Because then the video would be Django in 6 hours
The beginning was great, the last half was a bit rushed. I wish it would be a bit closer to actual existing scenarios and when to use what. Although I respect that this is build up like a documentation. As a beginner I would love to focus on the things that are most important when starting to build something with Django, instead of getting all pieces of information at ones and not be able to learn because of losing the context. But still a great course. That's only my habit to learn, I want to instantly use it in a real-world scenario to help me to remember and understand all. At the beginning you focused more on that. Thanks neither way.
I'm in love with the way this man says "COOL"...
Hi! Great tutorial. Since it's more than a year old now I like to share that:
November 2020: I used 'conda' for virtual environmentes and 'django' 3.1.3, and it all worked fine!
thanks, I was wondering about this
Very clear explanation throughout the whole video, you're saving lives.
Amazing tutorial, you took your time and explained everything. So many videos out there that copy and paste code without even explaining what anything does.
huge props and instant sub to this guy.
best django tutorial I've seen.
🤯
One of the best django tutorial on UA-cam.
Goes great guns till section 28, sucks after that. Goes way too fast with too many abrupt alterations to the code behind the scenes which causes a lot of trouble catching up to, almost seems like he's created a new file altogether. Persisted but couldn't watch it beyond section 34. Mind you, it's a great video - really valuable and helpful, just fix the second half!! Cheers..
The best django tutorial ever. To the the point.
thank you for this tutorial, I never enjoyed learning a framework but today!
I didn't even finish this tutorial but it allready saved my life AND project
You can tell how confident a coder is with how freely he deletes code.
I love this guy, he got me into coding with python
I am on the second hour repeating everthing wish me luck
suerte en ruso
@@carlosortiz406 en ukraniano
but thx
oh! thanks man. i watched first one hour and you solved my biggest problem!!! i got confused alot of youtube vids. thnks man! i really appreciated.
If you don't know stack overflow, you're probably new.
I'm just done with the basics, and I've done some prblem solving too, I'm i ready to take this course?
The first half of your video was great and I enjoyed it overall. But I'd like to make some constructive criticism: I would have much rather seen how to do a slug based lookup, or a bit about front-end users, or some real world validation, etc... than watching you redo the views 3 times using different methods. This is especially no good for beginners. Too many design choices can be absolutely paralyzing for a beginner. They will spend too much time deciding which to use when they could be writing some app logic and getting real experience. And if you focus on one method they will become more competent and confident in it. It'll also be more memorable. Perhaps teaching the first two methods could be justified, but there really was no need to rewrite the whole thing with raw class based views. Do beginners really need that info? At most it deserved was a mention that you could also do it that way.
got me confused too
@@castrombithi4135 As a beginner I agree with you. After the 2hr mark I was done. Learned as much as I could but I'm strill trying to follow.