Python and any other server side programming language can handle what you need. The key to learning Django and Flask, is that you have to learn the web stack first. Then you can choose to learn the Python way of creating a web app or one of many other competing solutions like JavaScript, PHP, Ruby etc ....
My suggestion is that you learn the web stack first, then you can choose what server tech is best for you. Here is my very popular full stack course that will save you a huge amount of time:
https://shop.killervideostore.com/