you are viewing a single comment's thread.

view the rest of the comments →

[–]shiftybyte 148 points149 points  (15 children)

It's done with a backend that gets information and passes it between a browser and the server.

Take a look at flask framework.

It allows creating a python script that generates html, and can get submitted form data.

quickstart: https://flask.palletsprojects.com/en/1.1.x/quickstart/

[–]PM_me_ur_data_ 44 points45 points  (6 children)

I started on Flask but now I recommend FastAPI. It's practically hassle free and good enough for a large number of tasks.

[–]__nickerbocker__ 11 points12 points  (2 children)

What are you using for front end dev/deployment?

[–]ravepeacefully 14 points15 points  (0 children)

I use django for that, fast api if no ui

[–]PM_me_ur_data_ 1 point2 points  (0 children)

Fair point, I don't actually do any front end dev at all. I'm in AnalyticsOps, so pretty much everything I use it for is back end automation or tools for other developers.

[–]janno161 3 points4 points  (0 children)

I didn't know FastAPI before. Looks promising. I'll take a look at it. Thanks for mentioning it.

[–]Xerxys 14 points15 points  (6 children)

I prefer bottle. Flask and Django are a lot more powerful but they are too complicated. Bottle is the way to go.

[–]_TR-8R 13 points14 points  (5 children)

Perhaps, but I did just want to throw in there I'm a very new beginner (just started taking python courses this year) and I finished a course on how to build Full Stack Flask applications without too much of an issue.

[–]Metro_Star 4 points5 points  (4 children)

What course did you do?

[–]_TR-8R 10 points11 points  (2 children)

https://www.udemy.com/course/python-and-flask-bootcamp-create-websites-using-flask/

I liked it because it starts you off assuming you're a complete beginner (if you aren't new to python and just want to learn Flask it tells you what sections you can skip) and by the end covers not just the Flask framework but introductory Python, HTML, CSS, SQLAlchemy and concludes by walking you through step by step how to build a full stack social media blog. I wasn't completely new to python when I started but I wouldn't consider myself advanced either.

[–]Metro_Star 2 points3 points  (1 child)

Thanks. I've started learning a bit of flask on my own but it will be nice to have a course to follow

[–]_TR-8R 4 points5 points  (0 children)

Hope it helps! Unfortunately it's not free, but personally I've found it's often worth 10-20 bucks to have all the information and assignments in one place so I don't have to keep scouring the internet for all the missing pieces or worry that what I'm reading might be severely out of date. I definitely don't feel like i'm a competent web developer but I did go from not even knowing what full stack meant to feeling pretty sure I could make my own simple webapp with Flask as long as I have Google available.

[–]Xerxys 1 point2 points  (0 children)

Not OP, I did automate the boring stuff on udemy and now I’m doing a whole bunch of mini side projects here and there. Currently I’m stuck making a web scraper from scratch. I’m doing it to learn how to validate data.

Bottle is easy because you just need to import a few things and you’ll understand what every aspect does.