HN Theater @HNTheaterMonth

The best talks and videos of Hacker News.

Hacker News Comments on
James Bennett - Django in Depth - PyCon 2015

PyCon 2015 · Youtube · 2 HN comments
HN Theater has aggregated all Hacker News stories and comments that mention PyCon 2015's video "James Bennett - Django in Depth - PyCon 2015".
Youtube Summary
"Speaker: James Bennett

This is a tutorial that goes beyond most tutorials; it's meant for developers who already know a bit about Django and want to really understand the inner guts of the framework. This tutorial will *not* involve writing code or apps; rather, it'll be a deep tour of the workings and APIs of Django itself, across all the bundled components and at all levels of the stack.

Slides can be found at: https://speakerdeck.com/pycon2015 and https://github.com/PyCon/2015-slides"
HN Theater Rankings

Hacker News Stories and Comments

All the comments and stories posted to Hacker News that reference this video.
Apr 03, 2017 · git-pull on Ask HN: Django vs. Flask
And I used to think like that. As if I was giving up potential. So I went through this SQLAlchemy core phase (http://docs.sqlalchemy.org/en/latest/core/tutorial.html). Though, never back to writing raw SQL, but I did some of that back in 2002-2003. And despite being challenged by colleagues skeptical of ORM's, I've yet to see a shortcoming for using an ORM in web development frameworks in python.

In fact I'm coming short on a value equation where it'd be more secure / efficient / readable without at least a query builder.

> but ORM means giving up a lot of control

What control is being lost, specifically?

> (and transparency, and understanding)

Highly recommend Django in Depth by James Bennett at PyCon 2015. https://www.youtube.com/watch?v=tkwZ1jG3XgA

Also, try out printing the .query of the QuerySet:

print(MyUser.objects.all().query)

SELECT "core_myuser"."id", "core_myuser"."password", "core_myuser"."last_login", "core_myuser"."is_superuser", "core_myuser"."username", "core_myuser"."email", "core_myuser"."is_active", "core_myuser"."is_admin" FROM "core_myuser"

And Q(), https://docs.djangoproject.com/en/1.11/topics/db/queries/#co..., .extra(), https://docs.djangoproject.com/en/1.11/ref/models/querysets/..., and finally raw SQL queries https://docs.djangoproject.com/en/1.11/topics/db/sql/.

> of your database in exchange for a few shortcuts regarding things like M:M links.

Maybe a few other benefits: helps with readability, consistent with OOP in python. Works across SQL dialects. Prevents mistakes, since those relationships are common. Getting clear and consistent access to common data retrieval and updating.

Apr 11, 2015 · hrayr on Pycon 2015 videos
There are a lot of 3 hour sessions. I love these compared to the 20 minute talks, since they go deep into the topic. I just watched James Bennett's "Django in Depth" and it was excellent https://www.youtube.com/watch?v=tkwZ1jG3XgA
HN Theater is an independent project and is not operated by Y Combinator or any of the video hosting platforms linked to on this site.
~ yaj@
;laksdfhjdhksalkfj more things
yahnd.com ~ Privacy Policy ~
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.