Python Forum

Full Version: which one is better?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
This is a basic question for a newb. I will be working on a static web site and was wondering which is better for that and or easier. Flask or django? I have used django some already but have not published one yet so am not sure of what else needs to be done for that. Would like 3 apps/pages but past that nothing extra yet all just informational stuff. thanks ahead of time.
Brian
Go with Flask.
I will also add please explain why you think one or the other is better please. Since I don't a lot about either it will help me make a decision. Thanks
It's not because it is better. For a project with a few pages, there is no point to run a full stack web framework.
So I guess I need to start learning flask. How different is it from Django?
This is a good overview video.
Can look at a tutorial here.
that video was a great answer to my question. Thank you very much!
(Oct-27-2018, 12:46 PM)prophoss Wrote: [ -> ]I will be working on a static web site
Slow down. If it's a static site, don't use either. You don't need any server side processing for a static site. Just write html, as html files, and any http server (apache, lighttpd, nginx) will work flawlessly.
I haven't ever gotten so far as putting a web page live yet so suggesting that I can just use an http server and my HTML files sounds good but could you explain a bit further please. I've got the basic html and css files together already. Now what do I do to actually publish the web site? Or could you give me a link perhaps. I've been looking up building static web sites and they are talking about other markdown languages and other programs like Gatsby or Hugo. I surely don't mind learning, but things are starting to splinter off into many directions. Thanks again.
Any shared web host would be fine. I like webfaction, but there are many to choose from.

As for getting your site to the server, either ftp or a web uploader, depending on the host.

But looking for a host is putting the cart before the horse. Get your site done first, so you know what you need the host to be able to do.
Pages: 1 2