Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

is there any way to make python website without any framework ex:- Django or Flask? please reply

is there any way to make python website without any framework ex:- Django or Flask? please reply

6 Answers

Cooper Runstein
Cooper Runstein
11,850 Points

Yes, but there happens to be a very good reason why people use frameworks, you'd be wasting your time trying to do that if you aren't already very comfortable with Django or Flask, and have a very good understanding of how the backend works. The learning curve for the frameworks is big enough as is.

but i want to make website without framework. please help me or tell me books or how to do it?

Cooper Runstein
Cooper Runstein
11,850 Points

Why? That's a pretty bad idea, python is a multi purpose language, it's not built specifically for the web, which is why we use frameworks. Even if you didn't use a framework, you'd end up using a bunch of libraries that don't mesh together as well, and in the end you'd likely waste hundreds of hours trying to do what django can do in just one. If you want to avoid frameworks, avoid python altogether. PHP doesn't require frameworks, though the truth is even most PHP websites are now built with a framework. Wanting to build a backend website without a framework is like wanting to build a house without getting all your tools together first, it's possible, but you'll spend more time driving to buy or borrow tools then you'll spend building the house. Why take the long and hard road to make a mediocre product when you could take the easy road and make an awesome one?

Cooper Runstein sir, so how google.com made in python without any framework in 1995 ?

Cooper Runstein
Cooper Runstein
11,850 Points

Yeah, if you and another one of your phd buddies want to put thousands of hours into developing tech that's 20+ years out of date, go right ahead. If you're actually interested in learning to build websites, learn a framework, and five years down the line when you actually know what you're talking about, you might be able to build your own python backend from scratch. Until then, stop asking questions that are totally irrelevant to the subject, if you're really a good enough programmer to recreate Google, why are you here?

HA HA HA HA.................................................................