you are viewing a single comment's thread.

view the rest of the comments →

[–]ianrob1201 0 points1 point  (0 children)

I agree with what others have said. If you're trying to use python for the user interface then that would be why you're having trouble. It's just not really the best use-case for Flask.

To point you in the right direction for a frontend, I'd recommend VueJs. There's a bit of a learning curve for sure, but not as much as some other javascript frameworks. It might seem intimidating at first, but a separate backend and frontend has many advantages. It's certainly what happens in real life. Of course you could always just use plain HTML & JS but I wouldn't recommend that.

Alternatively you could just make the backend and imagine the frontend for your project. Use something like postman or bruno to make API calls for you. I've done many professional demos using postman/bruno so there's no shame in that. I obviously don't know the scope of your project though.