Django sessions works great since the begining, you can do a site with them and
never really understand how sessions works, but you can't scale to thousands of
simultaneous users writing all your sessions to database. The database can be a
huge bottleneck here and you should remove all unnecessary …
I started contributing to Django core after a failure in our project.
I had to rename a model attribute without touching our database. The solution
was simple.
# Simple attribute to rename.author=models.ForeignKey('Author')# 1. Add db_column param.author=models.ForeignKey('Author',db_column='author')# 2. Change the attribute name …
Honeycomb is the observability tool we use everyday at Buser. They help us tracking application bottlenecks, slow database queries, slow requests, requests with too many queries and much more.
Their automatic instrumentation with beeline is a good start, but at some point we had to extend the default behaviour.
Python has awesome tools for logging, including standard logging module. Also, through WSGI protocol we have the wsgilog middleware. Using it is easy with any Python web framework.
You can easily integrate it in bottle environment.
During PythonBrasil[6], we discussed about cracking captchas. I already worked on it to automate some tasks with a stupid captcha. A lot of internet voting systems and forms security are based on captcha.
It is really easy to clean the image with some Python tools.