Django

Django is an open-source server-side web application framework, written in Python

Flask

Flask is a lightweight framework for developing web applications using Python.



Framework smaller micro

Example

"Flask is a simple micro framework whereas django is a more advanced mvc like framework"

from question  

How to host python script in a Web Server and access it by calling an API from xamarin application?

"Flask has a really great albeit smaller than django community and there are a lot of extensions available for common web-app extensions in the extensions directory"

from question  

Which python web framework(django or django-norel or pyramid) to use when MongoDB is used as a database

"If you are looking for the latter then flask is a micro framework that is considerably smaller than django"

from question  

Lightweight framework for forms w Ajax in Python

"Using the django web framework which is harder to learn than flask but provides more functionality"

from question  

How can i make a front end such that it takes the input performs calculations in python and returns the result to html

Simpler comfortable friend

Example

"But a friend told me to begin with flask as it s simpler and will help me when i start learning django as django is more complicated than flask"

from question  

* (no title is found for this review)

"If you re not comfortable with django yet consider starting with flask instead as it s simpler to get going"

from question  

How to scrape data from inside Django app

Familiar site difficulties

Example

"I m trying to set up a site in flask formerly familiar with django and i m having difficulties getting templates to render properly"

from question  

Flask template inheritance clarification

"You can of course use django instead of flask for the server though i m more familiar with flask and django may introduce new dependencies"

from question  

How to expose a web server with REST API and HTML/JavaScript applications from an existing Python application?

Cherrypy web2py django

Example

"If in fact you just need a web api wrapper flask is probably a much better choice than django simply because django is huge and you d be using only a fraction of its capability"

from question  

Gunicorn and/or celery: What is the way get the best out of both?

" ve played with flask cherrypy and web2py;django is better than all of django even if i just want to build something small and lightweight i d choose django"

from question  

Minimal web framework in Python for a small web application

Integration mongodb first

Example

"But if the use of mongodb is a must then i suggest that you reconsider using django in the first place because mongodb has a better integration with flask through mongoengine"

from question  

Django 1.5 with mongodb

"Now you can get all those same features with flask if you re prepared to do some integration work but the argument can just as easily be made that django is better for beginners precisely because the argument does come with all those things built-in"

from question  

Not using "admin interface" is a barrier for developing with Django?

Familiar hsname request.post.get

Example

"As i am not familiar with django or flask"

from question  

* (no title is found for this review)

"You could put your button in a form with a hidden input and access the value with request.form.get hsname or request.post.get hsname depending on how flask implements this i m more familiar with django"

from question  

Getting button name as input

Things better framework

Example

"I can think of two relatively straightforward things you can do without ditching php though i have to mention that php doesn t have much to recommend ditching php and you would likely be better off with python django python flask or ruby rails"

from question  

PHP Application Architecture on Heroku

"Django is more of an opinionated framework which may be better if you re just starting out and want to get up and running quickly;flask is more open-ended but will also require more from you both in time and knowledge"

from question  

How to create a business side inventory manager

Others

Example

I would recommend going with flask rather than django as you ll have far less to set up and far less to learn to get your project running

from question  

Interactive web application with Django/Flask issue

But django is probably not the fastest solution;flask is lighter

from question  

Which Python framework is flexible and similar to CodeIgniter in PHP?

If you project may grow big or you will use python to write big web project django is worth to learn as it s the most powerful web framework in python;if you only need a simple web application that even doesn t need db flask is simpler to learn as paulo said

from question  

Want to run a python script on a django application

Can be whit flask django or any technology

from question  

* (no title is found for this review)

Flask is very similar to django but i d recommend django over flask if you plan on building this out as a larger project

from question  

How to create a real simple json server?

Yes flask is simpler;but django has more community has more batteries

from question  

Not using "admin interface" is a barrier for developing with Django?

Current task looks like flask is ok for it since it is smaller and simplier than django

from question  

How to convert a file in Excel format to a sql format on the server

Django is a safe tool it handles many security issues but it might be longer to update the code;flask development is faster but you might spend more time on database orm settings configuration

from question  

Choosing http server for python api

Our team use django as our frame before but now we use flask as our frame because it is more light than django but we still use django template.

from question  

About how to apply csrf_token in Flask with django template

You can also have a look at alternative implementation using flask not django on raspberry pi for controlling gpio;django is written in python

from question  

Embedded C PWM dimmer to Django web app

Flask abstracts all the boring wsgi http stuff nicely but flask s more minimal than django

from question  

Python script execution on Apache server

Either will do the trick but bottle or in my preference flask will be faster as it is much more lightweight than django

from question  

* (no title is found for this review)

Both frameworks are fairly easy to implement flask is much easier than django imo although django has a built in authentication layer that you can use albeit more difficult to implement in a client server scenario like you need

from question  

Client-Server framework for python

But you should really accept blender s answer as flask and others like bottle and web.py are the right way to accomplish your task;as you ll see the simple way in django is considerably more involved

from question  

Why do I need Django for a simple Hello World?

I m building an application in both bottle and flask to see which i am more comfortable with as django is too much batteries included

from question  

Multiple URL segment in Flask and other Python frameowrks

That is an option i would recommend flask s a lot lighter weight than django and has url routing and templating

from question  

Creating a simple template for a website being hosted via Apache

Flask is more focused on simplicity instead of functionality while django has more functionality

from question  

Printing Python into HTML

Django is very batteries included meaning that it comes with much more out-of-the-box than say flask and to me a large part of that the user auth system

from question  

Django user model extension in an ecommerce application

The code below uses flask but pure sqlalchemy code is almost the same;as already noted by kevin-christopher-henry there is little point using django orm with non-django framework as well as the other way around if you use django it is much easier to stick to django orm

from question  

Python ORMs with attribute constraints such as required / optional?

I read that flask for beginner is better than django because educational reasons at the same time django have django oscar

from question  

* (no title is found for this review)

Back to Home
Data comes from Stack Exchange with CC-BY-SA-4.0