How to work elements of a python web page

Asked

Viewed 41 times

0

I’ve been studying python for a while and I’ve created an application, now I’d just like to create a page where the data that’s stored in a variable is displayed in that html element, sort of like the DOM in JS, except that every explanation I’m looking for is terribly confusing to me, I researched about Jango but never find a simple lesson about it, someone could give me a light?

  • You can use Python with Django or Flask. You can use a strategy to have the html pages mounted on the server. That is to say you will send a form with the request the server will process and return you another page. Another alternative would be to write the frontend (web part) with some js framework as Angular and use python to write the backend(server) in Django for example. This may help: https://django-portuguese.readthedocs.io/en/1.0/intro/tutorial01.html http://www.devfuria.com.br/python/flask/

  • Right, studying about, using python as a back is just what I want, thank you !

  • Just one thing, I can’t make an application that receives things from the back-end in python without having to reload the page ? 'Cause I want just a few components to refresh not all

  • You can. You serve a web application and reload the parts you want using ajax. Check out this link: https://www.techiediaries.com/python-django-ajax/

  • thank you very much !

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.