Python flask – is it possible to create a personal website using only python?

Question:

I am new to web-sites field and I was wondering if you can make a simple personal website using only python (NO HTML, CSS, JS) and flask. I was searching a bit on the internet and didn’t find any good examples.

Is it possible? And if it is any code examples?

I vould appreciate if you have any suggestions or exaples.

Here is what I want my website to look like(it doesn’t need to have this many functions): https://palletsprojects.com/

Asked By: gasper_vaupot

||

Answers:

Flask can be used for making realy simple websites with only basic text on them. But if you want a more developed website with more functions and a nicer desing you need to use html and css, and than you can use flask and python to implement ‘logic’ to them.

Here is a python flask tutorial:https://www.youtube.com/watch?v=MwZwr5Tvyxo

Answered By: gasper_vaupot

You can but it’s not going to look anything even remotely close to the URL you provided. You are going to need to have at least a little HTML to get your site even remotely close to graphically pleasing. However, I have recently discovered a new framework for web apps which is almost exclusively python. It’s called Pynecone. I hope this is what you’re looking for.

Answered By: kalebthekraken

Yeah, Flask can be used to make your own personal website.

Making it with only Python and no HTML or CSS or client-side JS… no.

I guess you could use React with Python to evade HTML files, but you would still require CSS to make it look good.

Keep in mind, Flask is meant for small learning projects, and cannot handle large projects. If you want to make large projects, I recommend you try out Django 😉

Answered By: Robo
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.