10 Reasons To Use Python Django

  Рет қаралды 45,621

Chris Hawkes

Chris Hawkes

Күн бұрын

Пікірлер: 119
@gagansahib2388
@gagansahib2388 4 жыл бұрын
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
@xgndqeggxgndqegg
@xgndqeggxgndqegg 4 жыл бұрын
thankyou 17 minutes in 15 secondes
@ramdhanandtara
@ramdhanandtara 4 жыл бұрын
Thanks
@xN811x
@xN811x 3 жыл бұрын
Thanks for saving me from this waste of time.
@webdevmichael5476
@webdevmichael5476 4 жыл бұрын
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.
@webdevmichael5476
@webdevmichael5476 4 жыл бұрын
@@scott_itall8638 What do you mean with "why"?
@robin196
@robin196 4 жыл бұрын
Django is far superior to all of the frameworks you have mentioned.
@webdevmichael5476
@webdevmichael5476 4 жыл бұрын
@@robin196 Sure it is ;) Have a nice day!
@mahmudsajib8648
@mahmudsajib8648 4 жыл бұрын
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.
@webdevmichael5476
@webdevmichael5476 4 жыл бұрын
​ 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.
@realchrishawkes
@realchrishawkes 4 жыл бұрын
🔥 If you're learning to code, check out my website 👉 codehawke.com/all_access.html 🔥 Learn more 👉 kzbin.info/www/bejne/nKHTY2RrhLiFjJI
@katejohnson2648
@katejohnson2648 2 жыл бұрын
How do you think Django compares to Ruby on Rails? They seem practically identical.
@realchrishawkes
@realchrishawkes 2 жыл бұрын
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.
@katejohnson2648
@katejohnson2648 2 жыл бұрын
@@realchrishawkes thanks for the clarification!! love the MVC :D
@sevdalink6676
@sevdalink6676 4 жыл бұрын
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.
@manueljunior8309
@manueljunior8309 4 жыл бұрын
That is not a big deal
@varlockt
@varlockt 4 жыл бұрын
Any one else annoyed like me during Django deployment..?
@MrAverageViewer
@MrAverageViewer 4 жыл бұрын
Yes. Deployment is an area that's more complicated than it needs to be.
@lewiskori9426
@lewiskori9426 4 жыл бұрын
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
@노랑-r1d
@노랑-r1d 4 жыл бұрын
Its such a pain
@S4Swadhin
@S4Swadhin 4 жыл бұрын
FastAPI and Flask
@realchrishawkes
@realchrishawkes 4 жыл бұрын
It is more of a pain than node. Especially with virtual environments and virtual hosts
@ssw4m
@ssw4m 3 жыл бұрын
I'd say Django REST framework is a good reason to use it also.
@subhranilghosh8179
@subhranilghosh8179 3 жыл бұрын
If Django is MultiThreaded then why it is capable of handling only one Requests at a time ?
@jackmaison4209
@jackmaison4209 4 жыл бұрын
Ever tried Fastapi?
@shashankpandey1966
@shashankpandey1966 4 жыл бұрын
Laura ka baar
@sciencecompliance235
@sciencecompliance235 4 жыл бұрын
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...
@sciencecompliance235
@sciencecompliance235 4 жыл бұрын
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.
@Bilal5619
@Bilal5619 4 жыл бұрын
I think we must use react in front and django in back with API..
@AxmedShiimax
@AxmedShiimax 4 жыл бұрын
I know enough about Django now I'm mastering react
@PAVANKUMAR-vj8oi
@PAVANKUMAR-vj8oi 4 жыл бұрын
Vue.js is pretty good for Django
@Bilal5619
@Bilal5619 4 жыл бұрын
Yeah its easy implement in django projects and it provide many built in methods now i am interested in learning vue.js
@mcaddit6802
@mcaddit6802 3 жыл бұрын
want to use django-appointment library, pls make video on it
@aayush_karna
@aayush_karna 4 жыл бұрын
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.
@bcmspeed6917
@bcmspeed6917 4 жыл бұрын
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?
@sciencecompliance235
@sciencecompliance235 4 жыл бұрын
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.
@davidkim2016
@davidkim2016 4 жыл бұрын
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.
@llamasarus1
@llamasarus1 4 жыл бұрын
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.
@arsenalacid
@arsenalacid 4 жыл бұрын
There is defintely less jobs for django, in the UK for sure
@PandemicGameplay
@PandemicGameplay 4 жыл бұрын
I'm surprised Django didn't catch on as much as NodeJS or
@sbrugby1
@sbrugby1 4 жыл бұрын
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.
@sociocritical
@sociocritical 4 жыл бұрын
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.
@andressalazargaleano6419
@andressalazargaleano6419 4 жыл бұрын
can u use djangos admin on production?
@maxhaenni
@maxhaenni 3 жыл бұрын
Yes
@mr_don_key
@mr_don_key 4 жыл бұрын
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.... )
@JonnyBeoulve
@JonnyBeoulve 4 жыл бұрын
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.
@llamasarus1
@llamasarus1 4 жыл бұрын
How is it dated?
@JonnyBeoulve
@JonnyBeoulve 4 жыл бұрын
@@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.
@rejiark2500
@rejiark2500 4 жыл бұрын
Outdated ? Haha Drf is blessing...try to make REST api with node ..its a mess
@llamasarus1
@llamasarus1 4 жыл бұрын
@@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.
@spammeat1730
@spammeat1730 4 жыл бұрын
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
@pranayambre7430
@pranayambre7430 4 жыл бұрын
can django use in creating ios and android ?
@ssw4m
@ssw4m 3 жыл бұрын
You could use Django REST framework on the server side.
@spacecowboyofficial
@spacecowboyofficial 4 жыл бұрын
Django REST Framework with JWT + Nginx + React Bootstrap front-end framework is my stack by heart
@KRISHNU10
@KRISHNU10 4 жыл бұрын
How do you use React with Django?
@spacecowboyofficial
@spacecowboyofficial 4 жыл бұрын
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_grizzlybear
@jmmacatangay_grizzlybear 4 жыл бұрын
can you extract the admin UI? and make it your own and design it by the use of bootstrap?
@tanercoder1915
@tanercoder1915 4 жыл бұрын
why would you do that? just use django's, it's free distributed.
@jmmacatangay_grizzlybear
@jmmacatangay_grizzlybear 4 жыл бұрын
@@tanercoder1915 it makes it ui friendly.
@dhruvdjain
@dhruvdjain 3 жыл бұрын
Yes sure u can do it
@Amir-tv4nn
@Amir-tv4nn 4 жыл бұрын
Can you use Django for a complex Web Ecommerce App?
@cpunk7119
@cpunk7119 4 жыл бұрын
Ofcourse
@manueljunior8309
@manueljunior8309 4 жыл бұрын
For sure
@cesarlugom
@cesarlugom 4 жыл бұрын
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.
@amirulraziq
@amirulraziq 4 жыл бұрын
What’s your favourite framework then?
@unkouwnfigure2746
@unkouwnfigure2746 3 жыл бұрын
You can use the Django rest framework to do client-side rendering
@tobi_dosumu
@tobi_dosumu 4 жыл бұрын
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 💙
@realchrishawkes
@realchrishawkes 4 жыл бұрын
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_dosumu
@tobi_dosumu 4 жыл бұрын
@@realchrishawkes Oh thanks!👍
@tobi_dosumu
@tobi_dosumu 4 жыл бұрын
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 🙏
@sevdalink6676
@sevdalink6676 4 жыл бұрын
@@tobi_dosumu what Operating System are you using?
@tobi_dosumu
@tobi_dosumu 4 жыл бұрын
@@sevdalink6676 I use Windows 10...pardon me for replying late. Thank you @Sevdalink.
@1MinuteFlipDoc
@1MinuteFlipDoc 4 жыл бұрын
Seattle here! and i see a job available! :) hahah 14:46
@ElTexMexAlex
@ElTexMexAlex 4 жыл бұрын
django vs asp .net core
@Gottii92
@Gottii92 4 жыл бұрын
the numbers xD
@eesakamaldien1917
@eesakamaldien1917 3 жыл бұрын
This is a awesome video
@ThisIsEduardo
@ThisIsEduardo 4 жыл бұрын
Great video!!
@eyeamkd
@eyeamkd 4 жыл бұрын
I'm not gonna do any video on corona, i just want to make some content. You had me there!
@subramanianchenniappan4059
@subramanianchenniappan4059 4 жыл бұрын
I am a java developer . Thanks for this video
@rockerwh
@rockerwh 4 жыл бұрын
Thats because you dont know sails.js
@realchrishawkes
@realchrishawkes 4 жыл бұрын
I tried it years ago
@rockerwh
@rockerwh 4 жыл бұрын
@@realchrishawkes So, what do you think about sails.js?
@drkarmakid
@drkarmakid 4 жыл бұрын
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............
@robin196
@robin196 4 жыл бұрын
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.
@drkarmakid
@drkarmakid 4 жыл бұрын
@@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.
@robin196
@robin196 4 жыл бұрын
@@drkarmakid "subscribe to DB" is there any other framework that allows ?
@0xPulcra
@0xPulcra 4 жыл бұрын
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.
@baconsteakey
@baconsteakey 4 жыл бұрын
@@0xPulcra perfect response. SPA overuse or rather misuse is a major problem. In many cases it's reinventing the wheel for no gain.
@spammeat1730
@spammeat1730 4 жыл бұрын
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.
@1MinuteFlipDoc
@1MinuteFlipDoc 4 жыл бұрын
ya... economic contraction...or a depression! doh!
@davidbasil2727
@davidbasil2727 4 жыл бұрын
There is NO reason to use it over Rails or Laravel
@abdullahatif7854
@abdullahatif7854 2 жыл бұрын
The content was good and all but I hit the dislike button because you talk too much and waste a whole lot of time.
@jodrim
@jodrim 4 жыл бұрын
first
@becknamitth
@becknamitth 4 жыл бұрын
Hej Edward
@usertempeuqwer7576
@usertempeuqwer7576 4 жыл бұрын
Django is garbage
@rejiark2500
@rejiark2500 4 жыл бұрын
How ?
@SayJee
@SayJee 4 жыл бұрын
but Golang is better.
VS Code & Django - Tutorial
10:13
Chris Hawkes
Рет қаралды 48 М.
Django Trends in 2023 - Talk Python to Me Ep.428
1:15:58
Talk Python
Рет қаралды 6 М.
Sigma girl VS Sigma Error girl 2  #shorts #sigma
0:27
Jin and Hattie
Рет қаралды 124 МЛН
Жездуха 41-серия
36:26
Million Show
Рет қаралды 5 МЛН
Война Семей - ВСЕ СЕРИИ, 1 сезон (серии 1-20)
7:40:31
Семейные Сериалы
Рет қаралды 1,6 МЛН
5 Python Libraries You Should Know in 2025!
22:30
Keith Galli
Рет қаралды 89 М.
C++ Super Optimization: 1000X Faster
15:33
Dave's Garage
Рет қаралды 334 М.
How much python do you need before django?
13:29
Dennis Ivy
Рет қаралды 224 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 913 М.
Python Django Crash Course
1:11:51
Traversy Media
Рет қаралды 371 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 226 М.
Understanding Django In 30 Minutes | Eduonix
25:41
Eduonix Learning Solutions
Рет қаралды 103 М.
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 578 М.
The Return of Procedural Programming - Richard Feldman
52:53
ChariotSolutions
Рет қаралды 64 М.
The Biggest React Framework You've Never Heard of
20:29
Theo - t3․gg
Рет қаралды 53 М.