I was asked this question on Quora. Normally I don’t like to fight for operating systems. I believe every OS is awesome in there own way. Different people have different needs. It’s one of the sweetest reasons for why we have so many operating systems on our planet. So I have just tried to share my own thoughts on why I am using Linux for Python programming. Please correct me if I make any wrong statement.
Before that, you should know the main difference between Flask and Django. Both are famous in Python arena. But they have different necessity and outlook. Flask is a microframework. The “micro” in microframework means Flask aims to keep the core simple but extensible. Flask won’t make many decisions for you, such as what database to use. Django comes with batteries-included. Django takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel.
Learning Django isn’t hard at all. But when I start to learn it, it seems very hard to me. So I stop learning Django and start learning Flask. But why? Django comes with MTV (Model-Template-View) architecture. In this architecture, a web App is divided into some parts. The code for database will be in models.py, the code for views, I mean how the web App will response with user interaction will be written in views.
You may see that, Django has two different ideas in its structure. One is project and the other is app. Project holds apps. You can create as many as apps you need. But the question is how many app will you need? Just one or more? For example, you are gonna make a blog. Now you can create an app as main which will manage the blog’s posts. Now your blog needs commenting.
Deploying Django on VPS is an easy task if and only if you know some system administration tasks. You may think on which I have written this statement. But believe me, it’s my personal realization when I deploy my personal blog (made on Django). Let’s go back. Previously, my personal site was on WordPress, a PHP based CMS. It is free, Open Source and the top blogging CMS.. Everything was going right.
SQLite is an in-process library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. Unlike most other SQL databases, SQLite does not have a separate server process. SQLite reads and writes directly to ordinary disk files. A complete SQL database with multiple tables, indices, triggers, and views, is contained in a single disk file. The database file format is cross-platform - you can freely copy a database between 32-bit and 64-bit systems or between big-endian and little-endian architectures.
What is Flask? Flask is a microframework for Python based on Werkzeug, Jinja 2 and good intentions. And before you ask: It’s BSD licensed! “Micro” does not mean that your whole web application has to fit into a single Python file (although it certainly can), nor does it mean that Flask is lacking in functionality. The “micro” in microframework means Flask aims to keep the core simple but extensible. Flask won’t make many decisions for you, such as what database to use.
- OLDER POSTS
- page 1 of 2