1. Free 1:20 2. Open Source & cross platform 2:10 3. Django is just python code 3:05 4. Uses MVC pattern 4:17 5. It's secure 7:00 6. Built in user authentication 8:05 7. Built in Admin UI 9:55 8. Object Relational Mapper (Python code that writes sql for you) 11:51 9. Code Re-use using templates (out of the box) 12:53 10. Decent jobs in the market 14:28
@xgndqeggxgndqegg4 жыл бұрын
thankyou 17 minutes in 15 secondes
@ramdhanandtara4 жыл бұрын
Thanks
@xN811x3 жыл бұрын
Thanks for saving me from this waste of time.
@webdevmichael54764 жыл бұрын
Looking at reason 1 to 10 aka all of them, you could replace Python/Django with literally every MVC full-stack framework in any language. 1) Ruby/Rails 2) PHP/Laravel 3) TS/NestJS 4) JS/NestJS/Sails/AdonisJS 5) C#/DotNet/NetCore 6) Java/Spring All of them would get a check mark on your list.
@webdevmichael54764 жыл бұрын
@@scott_itall8638 What do you mean with "why"?
@robin1964 жыл бұрын
Django is far superior to all of the frameworks you have mentioned.
@webdevmichael54764 жыл бұрын
@@robin196 Sure it is ;) Have a nice day!
@mahmudsajib86484 жыл бұрын
Why you should use the frameworks @Michael listed: 1. Ruby/Rails - Use if you think your future is secured with a dead language.. 2. Php/Laravel - Use if you care less about security & application scalability. 3+4. TS/JS - Use if you want to get lost into a shitty codebase. 5+6. C#/Java - Use if you want to write 4x more code & waste 4x more time.
@webdevmichael54764 жыл бұрын
Mahmud Sajib Haha if that is your experience with that frameworks okay. I did not know that python devs are such fanboys xD and if you use python then you can not forget to indent your code and you don't care about performance at all? 1. Yeah ruby is dead i hear that for 15 years now... 2. PHP is as secure as the developer 3+4.The shity codebase argument has nothing to do with the language. Again the developer who writes the code is the problem 5+6. Sounds like you never worked in big teams on enterprise projects.
@realchrishawkes4 жыл бұрын
🔥 If you're learning to code, check out my website 👉 codehawke.com/all_access.html 🔥 Learn more 👉 kzbin.info/www/bejne/nKHTY2RrhLiFjJI
@katejohnson26482 жыл бұрын
How do you think Django compares to Ruby on Rails? They seem practically identical.
@realchrishawkes2 жыл бұрын
They are similar. Django was made in Ruby's image originally. At least in the sense, of Python's version of what Rails brought to Ruby.
@katejohnson26482 жыл бұрын
@@realchrishawkes thanks for the clarification!! love the MVC :D
@sevdalink66764 жыл бұрын
One small problem at the authentication is that you can not use email as username by default. You have to to override the register form to achieve that.
@manueljunior83094 жыл бұрын
That is not a big deal
@varlockt4 жыл бұрын
Any one else annoyed like me during Django deployment..?
@MrAverageViewer4 жыл бұрын
Yes. Deployment is an area that's more complicated than it needs to be.
@lewiskori94264 жыл бұрын
It's such a pain. I found this hack where using docker simplifies things alot. dev.to/lewiskori/deploying-a-python-django-application-using-docker-3d09
@노랑-r1d4 жыл бұрын
Its such a pain
@S4Swadhin4 жыл бұрын
FastAPI and Flask
@realchrishawkes4 жыл бұрын
It is more of a pain than node. Especially with virtual environments and virtual hosts
@ssw4m3 жыл бұрын
I'd say Django REST framework is a good reason to use it also.
@subhranilghosh81793 жыл бұрын
If Django is MultiThreaded then why it is capable of handling only one Requests at a time ?
@jackmaison42094 жыл бұрын
Ever tried Fastapi?
@shashankpandey19664 жыл бұрын
Laura ka baar
@sciencecompliance2354 жыл бұрын
Chris, please make a video about asynchronous programming with Django. I was getting into this right before the coronavirus and restrictions hit the US hard and some other things took priority, but I'm trying to get focused back on coding again. Also, I can't make a url out of an article slug to save my life. I have no idea what I'm doing wrong.. but that might be too much of a specific personal problem for you to address in a video. Anyway, it always gives me a 404 error whenever I try to go to the CreateView page. I think it might be because the get_absolute_url method is trying to reference an object (the slug) that has yet to exist since it is based on the article title which has yet to be written, but I honestly don't have a clue. It works if I write the article on the admin page instead, but that is not a viable solution for a blog-style website. Must work with the CreateView page. Anyway...
@sciencecompliance2354 жыл бұрын
Joshua Stevenson Thanks, so it does look like it's a matter of the view trying to reference a slug that doesn't exist. Thanks for the tip.
@Bilal56194 жыл бұрын
I think we must use react in front and django in back with API..
@AxmedShiimax4 жыл бұрын
I know enough about Django now I'm mastering react
@PAVANKUMAR-vj8oi4 жыл бұрын
Vue.js is pretty good for Django
@Bilal56194 жыл бұрын
Yeah its easy implement in django projects and it provide many built in methods now i am interested in learning vue.js
@mcaddit68023 жыл бұрын
want to use django-appointment library, pls make video on it
@aayush_karna4 жыл бұрын
To be honest use any language you love. Let no one (including Chris Hawkes) influence you to use what they like, use what you like.
@bcmspeed69174 жыл бұрын
Thanks Chris, as a noob who just started using django, I love it. Is there any reason it doesn't get any love in the corporate world?
@sciencecompliance2354 жыл бұрын
BCMspeed6 It does. Go on the Django website and see which websites use it. Instagram, Pinterest, The Onion, and more use Django. It's not as widespread as others, but it's out there.
@davidkim20164 жыл бұрын
depends what the product is. in general, python as a language is safe and easy, but lacks in performance. hence, it doesn't see the light of day when compared to systems languages like Rust and C++. for the web, JS ecosystem rules. that being said, python is often used for startups for relatively quick development, esp with tools like django and flask. i like python for parsing, logging, and network stuff.
@llamasarus14 жыл бұрын
It's more popular with startups than enterprise level corporations. ASP.NET has marginally better speed and performance with that kind of stuff. C# vs. Python, C# ( is a faster language being compiled. And Microsoft is loading millions of dollars into having their stack using for corporations where Django has no centralized authority to do such a thing. Those are the reasons I've heard at least and there are probably more.
@arsenalacid4 жыл бұрын
There is defintely less jobs for django, in the UK for sure
@PandemicGameplay4 жыл бұрын
I'm surprised Django didn't catch on as much as NodeJS or
@sbrugby14 жыл бұрын
Django has no (major) corporate sponsorship, doesn't perform well and doesn't scale well. You can create things quickly but it's an aging framework where most middleware hasn't been updated since v2.2 . JS on the on the hand has insane amounts of corporate money pumped into it and great performance/scaling with the nodejs/chrome V8 engine.
@sociocritical4 жыл бұрын
Also NodeJS has much better frameworks nowadays like NestJS for building reliable, flexible, testable and scalable applications and JavaScript/TypeScript has become a lot more powerful. If you think NodeJS with Vanilla Express is the end of the line you havent really looked into it the past years.
@andressalazargaleano64194 жыл бұрын
can u use djangos admin on production?
@maxhaenni3 жыл бұрын
Yes
@mr_don_key4 жыл бұрын
it's a nice framework, but also very boxed in (dev freedom is not as free as you sometimes want: do it the django way, or you are fighting the framework more than you want.... )
@JonnyBeoulve4 жыл бұрын
Good video quality as always but I can't recommend Django. I used it for 1 year 2 months working on a production HIPPA compliant medical application. It's dated technology. While you can extend it to use REST and then toss in the front end of your choice and skip the template system, if you're going to do that then just use Flask. Flask is easier to reason with. But really, the smart choice is to learn Node. Having React and Node expertise is currently top tier.
@llamasarus14 жыл бұрын
How is it dated?
@JonnyBeoulve4 жыл бұрын
@@llamasarus1 It's templating system was before the "big bang" of front end frameworks, so using it I'm monolithic mode is a poor investment. In terms of Django REST, library support was never particularly good and the platform is no longer seeing fast paced development and growth. When you build out a back end for a system you want something that will last as long as possible, and for that even Ruby on Rails is better since it saw far more iteration and adoption.
@rejiark25004 жыл бұрын
Outdated ? Haha Drf is blessing...try to make REST api with node ..its a mess
@llamasarus14 жыл бұрын
@@JonnyBeoulve as an amateur web dev who has made websites in python lve found Django to be a breath of fresh air compared to flask and especially PHP. I guess I don't know what I'm missing with other frameworks out there. I'll move on to ASP.NET eventually.
@spammeat17304 жыл бұрын
Well, knowing Django made learning node much quicker and Django is a MVP dream for developers, but yeah currently errybody loves Node so if you know it you might get a job before the economy tanked
@pranayambre74304 жыл бұрын
can django use in creating ios and android ?
@ssw4m3 жыл бұрын
You could use Django REST framework on the server side.
@spacecowboyofficial4 жыл бұрын
Django REST Framework with JWT + Nginx + React Bootstrap front-end framework is my stack by heart
@KRISHNU104 жыл бұрын
How do you use React with Django?
@spacecowboyofficial4 жыл бұрын
Krishnu Pradhan i don’t, it’s the REST framework. You can use it to create APIs. But again, it depends of your needs
@jmmacatangay_grizzlybear4 жыл бұрын
can you extract the admin UI? and make it your own and design it by the use of bootstrap?
@tanercoder19154 жыл бұрын
why would you do that? just use django's, it's free distributed.
@jmmacatangay_grizzlybear4 жыл бұрын
@@tanercoder1915 it makes it ui friendly.
@dhruvdjain3 жыл бұрын
Yes sure u can do it
@Amir-tv4nn4 жыл бұрын
Can you use Django for a complex Web Ecommerce App?
@cpunk71194 жыл бұрын
Ofcourse
@manueljunior83094 жыл бұрын
For sure
@cesarlugom4 жыл бұрын
Django is an OK framework. It's not semantic, not Domain Driven Design and not micro app or applications Decomposition oriented by nature, and does not promote single page application development in the front end but server side rendering tho. Not really my favorite.
@amirulraziq4 жыл бұрын
What’s your favourite framework then?
@unkouwnfigure27463 жыл бұрын
You can use the Django rest framework to do client-side rendering
@tobi_dosumu4 жыл бұрын
Hello Chris. Hope you're staying safe. Great video as always by the way. I see you use VS code. I've been having some difficulties setting up my VS code for working with Python. Could you do a video please on HOW TO SETUP VS CODE FOR PYTHON & DJANGO? Thanks and I'll be on the lookout for it. And stay safe please 💙
@realchrishawkes4 жыл бұрын
I hope you're safe as well. I did a video on this in the past, it should still be up to date. kzbin.info/www/bejne/f53QenacfLaCrJY
@tobi_dosumu4 жыл бұрын
@@realchrishawkes Oh thanks!👍
@tobi_dosumu4 жыл бұрын
Hello Chris. I hate to let you know that after watching your video and several others and surfing the web, I've not been able to successfully work with python on my VS Code. It's almost driving me nuts seeing a whole day flushed down the drain! Two errors, I suppose, are holding me down in this quagmire: 1. A popup notification to download Python even when I'd downloaded and installed the latest version (Python 3.8.2 64Bit for Windows 10 which is my PC OS & Bit size by the way) 2. A popup notification warning at the bottom left hand corner of the status bar stating "Select Python Interpreter". And when I click on this, a text field pops up at the top of the VS CODE IDE with this as the placeholder: "current: python" with nothing to select from! I didn't want to bother you, at least not at this turbulent times, but I'm left with no choice. Kindly help mentor. Thanks 🙏
@sevdalink66764 жыл бұрын
@@tobi_dosumu what Operating System are you using?
@tobi_dosumu4 жыл бұрын
@@sevdalink6676 I use Windows 10...pardon me for replying late. Thank you @Sevdalink.
@1MinuteFlipDoc4 жыл бұрын
Seattle here! and i see a job available! :) hahah 14:46
@ElTexMexAlex4 жыл бұрын
django vs asp .net core
@Gottii924 жыл бұрын
the numbers xD
@eesakamaldien19173 жыл бұрын
This is a awesome video
@ThisIsEduardo4 жыл бұрын
Great video!!
@eyeamkd4 жыл бұрын
I'm not gonna do any video on corona, i just want to make some content. You had me there!
@subramanianchenniappan40594 жыл бұрын
I am a java developer . Thanks for this video
@rockerwh4 жыл бұрын
Thats because you dont know sails.js
@realchrishawkes4 жыл бұрын
I tried it years ago
@rockerwh4 жыл бұрын
@@realchrishawkes So, what do you think about sails.js?
@drkarmakid4 жыл бұрын
5 reasons you should NOT use Django: 1) Django/SQL doesn't let you "subscribe" to database changes i.e., you cannot build a modern site where the UI changes in real-time as the database changes. 2) Template inheritance is now considered to be somewhat of an anti-pattern. The big 3 front end frameworks (Angular/React/VueJS) use components. 3) Angular/React/VueJS have sucked the air out of the room with respect to front end development. As a result, many front end Django projects have effectively died and will break on recent versions of Django. 4) Some would say you should use Django Rest Framework (DRF) for the backend and Angular/React/VueJS for the front end. Wrong. This achieves very little because DRF doesn't offer any mechanism to let Javascribe subscribe to database changes. (I think this is actually a SQL limitation, but I could be wrong.) 5) Django admin rules! Yes, it's a really nice declarative way of building CRUD apps in a super short period of time. Unfortunately, the UI hasn't been updated in many years and doesn't look very modern. And because of #3, third party "skin" libraries are either old or not well tested. (For example, I was using django-material-admin and discovered that it's totally unusable on IE 11.) Conclusion: If you want to become a professional web app developer, then learn Vue.JS (or React) with a Firebase or AWS Amplify backend. That's the way to build professional apps in 2020. If you use Python in your day job and don't intend to build web apps for a living, then Django is a great choice. Note that transitioning from Django to React/Firebase is NOT a small learning curve. The workflow and tools are quite different: DjangoORM vs graphql/NoSQL, async vs sync, templates vs components, serverless vs server-based, native HTML tags vs component library tags, Python vs Javascript............
@robin1964 жыл бұрын
Modern Web Dev with different framework is a mess. At the end of the day you want your ideas to be in the market, you dont want to learn complex things for simple UI. I understand that its a world of API's and trying to serve different type of agents is a huge pain in the butt. This complexity is killing many innovations and ideas.
@drkarmakid4 жыл бұрын
@@robin196 I totally agree. I call 2003-2013 the "golden age" of apps because you could build something cutting edge (for its time) with just Rails or Django. But there is no going back for the reasons I outline above.
@robin1964 жыл бұрын
@@drkarmakid "subscribe to DB" is there any other framework that allows ?
@0xPulcra4 жыл бұрын
I have found elegant web apps can still be written with no framework, minimal ui interaction, following conventions (like delegated event handling), well thought out views, using a browser as it was meant to be (ie staying the hell away from SPAs and allowing anchors to actually navigate). Django still ticks all the boxes here. I will use nodejs to compliment it if I want dedicated services for websocket interaction or handling many small request packets.
@baconsteakey4 жыл бұрын
@@0xPulcra perfect response. SPA overuse or rather misuse is a major problem. In many cases it's reinventing the wheel for no gain.
@spammeat17304 жыл бұрын
Yo, the numbers are delayed a bit too long, also, like the concept, but make it prettier. Also maybe even have the time stamps? I mean, I wouldn't use it on a top 10 video, but for a tutorial or technical talk that can be broken up, yes please.
@1MinuteFlipDoc4 жыл бұрын
ya... economic contraction...or a depression! doh!
@davidbasil27274 жыл бұрын
There is NO reason to use it over Rails or Laravel
@abdullahatif78542 жыл бұрын
The content was good and all but I hit the dislike button because you talk too much and waste a whole lot of time.