Choosing a Python Web Platform

This may seem like a subjective question. But this is not (this is not an idea, at least).

I am developing adware (e.g. AdWords, AdBrite, etc.) and I decided to use Python. And I would like to use one of those well-known web frameworks (Django, Cherrypy, pylons, etc.).

The question arises:

Given that he will have only a few models (seven or eight) that have better cache support? and What are the most efficient data retrievals from a MySQL database?

Thanks!

+6
python django cherrypy mysql pylons
source share
5 answers

If you want to use Python to execute complex SQL queries in your database, for example. you might want SQLAlchemy .

TurboGears 2 is the framework that comes with SQLAlchemy as a standard; check the caching page for more information on the second part of your answer.

+1
source share

check the bottle. Its lightweight, fast, runs on top of Werkzeug, uses Jinja2 and SQLAlchemy templates for the model domain. http://flask.pocoo.org/

+7
source share

Productivity should be more or less equal. If you just want to take a look at the swirls, pylons and other lightweight frames.

-> http://wiki.python.org/moin/WebFrameworks gives a good overview.

+2
source share

CherryPy is the only infrastructure that I know of that does real HTTP caching out of the box (but look at the glass for solving the WSGI component). Many of the others provide you with tools for storing arbitrary objects in Memcached or other storage.

+1
source share

I am only familiar with Django and I can say that it has a very reliable middleware handler and very simple cache management. In addition, ORM (an object-relational resolver, connecting objects to databases) can have Postgre or MySQL as the engine, so you can choose the fastest (I think other frameworks use SQLAlchemy ORM, which is also super cool and fast)

Check:

0
source share

All Articles