Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Danny Maitland
Courses Plus Student 156 PointsDoes Python always use a Framework when being used on the Back-end?
Hello, I wanted to know, does Python always use a Framework when a website uses it on the Back-End? I read that Netflix uses Python on the back-end so does that mean that Netflix uses a Python framework like Django? I also read that YouTube uses Python.
I'm sure that these companies use their own in house builds in some way. But if they don't use Frameworks such as Django how do they use Python on the back-end? As it can't be used in the same way as using PhP with just a PhP file linked in the HTML.
Or are there FrameWorks that allow Python to work on the back-end without having the entire website wrapped around Python like Flask or Django?
1 Answer

Michael Hulet
47,881 PointsJust like any other backend language, you can totally use just Python on its own to build a server. All those frameworks like Django and Flask are built in Python, so what they do can be (and is) done totally in vanilla Python. That being said, building anything bigger than the most trivial websites without a web framework is super rare, and I'd be really surprised if places like Netflix and YouTube don't use one. A cursory Google search doesn't yield much information about specifically which frameworks they use, but I think Django would a safe bet. As long as you know how to write Python and the basic concepts that make those frameworks useful, though, you could definitely be a productive developer in their stack(s)
Danny Maitland
Courses Plus Student 156 PointsDanny Maitland
Courses Plus Student 156 PointsThank you for you answer. I was just a little confused. I would imagine that some companies would maybe keep their FrameWorks and some other aspects a secret. Maybe.
Regardless, thank you for your answer.