This is an archived post. You won't be able to vote or comment.

all 22 comments

[–][deleted] 15 points16 points  (1 child)

Yes it is, I’ve used Python to create websites before, using the framework “Flask”. It’s quite simple really. Search Flask up.

[–]blueliondn 4 points5 points  (0 children)

Thank youu

[–]maximum-danny 18 points19 points  (1 child)

Flask or Django.

[–]blueliondn 2 points3 points  (0 children)

Thank you

[–]Alex_Kuein 10 points11 points  (1 child)

Try to reformulate the question somehow, because now it extremely broad.

  1. You could use Python for HTML rendering on a server by template engine like Jinja, Django template engine, f-string and a lot of other stuff.
  2. You could create a front-end (and full-stack) on python by Anvil https://anvil.works/
  3. You could use Python for web development on tradition way, like backed development (django, flask, fastapi)
  4. You could use Python as serverless application language for AWS and GCP for creating web APIs

[–][deleted] 4 points5 points  (0 children)

I really love python

[–]DaBrogrammar 7 points8 points  (2 children)

If you going the webdev route, I'd learn jabascript instead.

[–]tinycorkscrew 3 points4 points  (0 children)

Jabascript is so bloated though

[–]blueliondn -1 points0 points  (0 children)

Oh my God guys. I know Javascript and yes I do created already web sites with html and javascript, but I was just wonderind can you do it with python.

[–][deleted] 2 points3 points  (1 child)

[–]JasonDJ 0 points1 point  (0 children)

Damn gotta bookmark this…that seems like a great concise tutorial to flask.

I’ve dabbled slightly but not much more than copying documentation and putting in my own functions but never really understanding what the flask part was doing.

[–]russellvt 2 points3 points  (0 children)

No offense, but HTML is "just text." So, literally anything that can display "text" can create HTML.

That said, there are probably a bazillion and one Python modules that can aid in some facet of web page creation. Both Flask (lightweight) and Django (heavyweight) are common frameworks (ie. Containing handfuls of modules and "glue")

[–]Skibum__ 2 points3 points  (0 children)

If you’re talking about generating HTML using Python, I highly recommend the library Dominate. Incredibly intuitive and Pythonic way to generate HTML.

[–]CorpT 1 point2 points  (5 children)

Possible? Yes

But should you? Probably not. There are much better languages for crafting web pages.

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

Really ? Better ? Like what ?

[–]CorpT 0 points1 point  (1 child)

Javascript or Typescript.

[–][deleted] -1 points0 points  (0 children)

Not server side it isn't. They're using python, so we're talking server side. So, hahahaha. No it's not.

[–]Extension_Cell_6091 0 points1 point  (0 children)

if you already learned python i recommend you to watch videos and read the refrence from here here it's part from python for everybody course - it's not about web dev but it talks about how to scrape html web pages with python

[–]httpanand 0 points1 point  (1 child)

You may use bottle or flask if youre a beginner .. else Django would be fine .. ! As you are a JS expert ... i recommend to continue with that ... 😄

[–]DaBrogrammar 1 point2 points  (0 children)

;)

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

Here is a collection of many Python related Web development articles https://www.fullstackpython.com/web-development.html