If you’re brand new to Django, don’t spend much time trying to understand this code right now. You should keep in mind as you’re learning Django, however, that all the source code is just a few clicks away. It’s not magic; it’s a lot of work over many years figuring out how to efficiently turn requests into responses. It’s kind of nice to see the simple line
return response
. That’s the core of what Django does.