S
S
Sugia2012-08-17 17:03:31
Python
Sugia, 2012-08-17 17:03:31

What web framework to use?

Good afternoon, habrosoobshchestvo!
Interested in a subject for the following tasks:
1. Jinja2/hamlish-jinja
2. REST
3. Scss/Less
4. Assembly-compression of scripts and styles into files one at a time.
It is worth adding that the Python application will be a frontend to a .NET / Mono business server with RPC over ZMQ / Protobuf, and therefore the presence of Active Record in the web framework would be avoided.
Opinion about the frameworks that I have already looked at:
Django
I like the fact that there is path generation, bindings to jinja2.
However, it contains ActiveRecord and there is no compression-assembly of scripts-styles.
CherryPy
Everyone likes it, but it is alarming that the project is in sluggish support. It also does not suit the fact that there is no mechanism for generating paths in templates like url_for. At least the library found in Plugins could not be started.
What can you add about CherryPy, Django?
What can you say about Twisted/Flask/Pyramid/TurboGears?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
avalak, 2012-08-17
@avalak

I am for Flask . It has a Werkzeug + integration with Jinja 2 "distortions" under the hood . It's quite convenient to implement REST through MethodView . There is nothing superfluous in it (no forms, no ORM / AR. functionality can be easily extended through extensions), but it is not ascetic as Bottle .
To work with assets, there is Flask-Assets

N
niko83, 2012-08-17
@niko83

About django "missing compress-build-script-styles." there is a separate package
pip install django-compressor

A
Alexey Ismailov, 2013-11-13
@sormon

I recommend Flask. Django, unfortunately, is too strongly tied to its ORM, and not only. There are a lot of different extensions for flask, the same admin panel . According to ORM, you can use both SQLAlchemy and whatever you like. And yet, there is such a yummy for jinja2 - pyjade , which allows you to write templates in the style of Jade / Haml. Very cool stuff =)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question