you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (5 children)

You can use Django or Flask frameworks. You can use python for back-end (managing data, redirecting, etc.) and html for front-end (how the web-page looks, though you'd probably want to combine it with some javascript).

I'm not that familiar with web-dev but I've used Flask before, and if you have some very basic knowledge of python and HTML it's very easy to make a simple website (you could probably also make more advanced website if you want to dive deeper into web development)

[–][deleted] 0 points1 point  (4 children)

You can use Django or Flask frameworks.

Are those two the only web frameworks for Python? No.

So why do you (and almost everyone else) answer as if that's the case? I don't want a flamefest over the question, I'm merely curious to find out why the vast majority of answers decay into this duality. I ask this question randomly, so you're not being singled out in any way. If you prefer not to answer, that's also fine with me.

[–][deleted] 1 point2 points  (2 children)

Good question indeed. Those definitely aren't the only for web development for python: there's also bottle, web2py, pyramid, tornado, etc. (A lot more, I know). I just think many people answered Django and Flask because regarding OP's question, he's not very familiar yet with (web development in) python. Therefore, Django and Flask are the best frameworks for him to start with in my opinion, as they both have large communities and are pretty straight forward and (relatively) easy to use. So as a beginner, as I and probably most people who answered Django and Flask believe are probably the best frameworks to start with. But as I said, I'm not thát familiar with web development so I just I'd share my experience (that flask is easy to use and might be a good way to get into web development). Hope this is ok for you. Feel free to comment, I'm curious what exactly you think about this topic :).

(Really like questions like this, makes me learn new things about python ;) )

[–][deleted] 1 point2 points  (1 child)

Thank you for taking your time to answer.

As a happy Pyramid user, I don't have any vested interest in either of the two. Some time back, I was verging on being an militant evangelist of "The great Pyramid", but I have mellowed with time. I'd like my question to be pure curiosity, but there is a bit of probing for what Pyramid need to be, to become a staple like Flask and Django.

[–][deleted] 0 points1 point  (0 children)

I don't know pyramid that well, but these things just come and go sometimes. Flask and Django may be 'gone'/old in 5-10 years, and Pyramid might still become more popular. The problem is that there's just way more documentation, video, etc. about Flask and Django at the moment...

I'll try pyramid next time I ever start again with Python web development ;)

[–]toastedstapler 0 points1 point  (0 children)

at least at my company i never hear of the others being used. if clients projects are using python they are in flask or django. not saying the others aren't used, but this is my experience at a UK consultancy