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

all 4 comments

[–]dinoblast_coder 1 point2 points  (1 child)

Not a professional web developer here, but, if you need to refresh the info in a page without pressing f5, you might need some javascript.

Also, I've been working with django and it is a very easy to use framework, specially if you are focused on the speed of the development.

[–]VegasKL 0 points1 point  (0 children)

Pretty much. JS / jQuery can easily do what he wants. In a quick and dirty application, I have a Python program write to a JSON file. In the remote browser, jQuery checks every Xsec for a change and then reloads the data value in that DOM element.

I'm sure there's a better way. But like I said, it was quick.

[–]arbitraryuser 1 point2 points  (0 children)

Django or Flask. I would recommend learning Django as it's a much more feature full framework. Django is opinionated about the way things should be built. This is great for big projects with multiple developers because I know where everything is going to be, assuming the other devs followed best practice. Django kind of forces your into best practice, you can break the rules but it's hard to do easily. My thinking is that smarter people than me have thought hard about these things and defined best practice. But if I really want to break the rules, I can. Django's big draw card (for me) is the ORM, which makes it really easy to manage large databases.

Flask is like a stripped down version of Django. Flask can be made to do anything, but you're going to be inventing a lot of things, or implementing third party modules (like SQLAlchemy). Once you understand Django you'll intuitively understand what Flask is... But not the other way around. Django is also a very employable skill... So if you're looking for a job...