Quantcast
Channel: Il Bloggatore » Python
Browsing latest articles
Browse All 38 View Live

Django Notes: tests, setUp method and db data

This won’t be a full post, but just a quick note (probably the first one of a serie) about development with Django. When we write a TestCase test, if we have defined a setUp method, it will be called...

View Article



How to write a custom Django Middleware

To understand how a Django Middleware works we need to remember that the basic architecture of Django is composed by a request and a response. A middleware is something that stays in the middle. Let’s...

View Article

Building custom endpoint handlers with Eve

On Stack Overflow and the Eve mailing list, but also in my mailbox and even on Twitter, I get a lot of enquiries on how to build custom endpoints within a Eve-powered RESTful application. Now, since...

View Article

Django Notes: read values from settings in a safe way

Working on Django projects I find very often that many developers access the values that are defined in settings in this way [crayon-55e262b53b934962682774/] What happens if MY_SETTING has not been...

View Article

Understanding Python decorators optimizing a recursive Fibonacci implementation

A decorator is a Python function that takes a function object as an argument and returns a function as a value. Here is an example of decorator definition: [crayon-55e49e502fce0261512384/] To apply a...

View Article


Full Circle Magazine n. 88

Abbiamo pubblicato il numero 88 della rivista Full Circle nel sito internazionale. Per il download del PDF fate clic sui link riportati in basso. Dal sommario Editoriale News Comanda e conquista: SASS...

View Article

Reversing a List in Python

Sometimes we need to reverse the order of the elements in a Python list. While there can be many different ways of implementing this task, I found three in particular that I appreciate for different...

View Article

My talk at Percona Live 2015

The slides of my talk at Amsterdam Percona Live 2015 are online. It was titled “MongoDB and REST APIs a Match Made in Heaven” and it was meant as an introduction to Mongo, REST principles and the Eve...

View Article


Convertire una presentazione in immagini, includendo le animazioni intermedie

Ieri ho iniziato il lavoro di montaggio video del mio intervento sull’estrazione di dati dalle pagine web. Come gli anni scorsi, anche quest’anno ho parlato utilizzando una presentazione Impress per...

View Article


Tutorial 12 (Difficile) Custom TinyWebDB, salvataggio tabellone HighScore su...

Continuiamo a vedere una possibile applicazione del Custom TinyWebDB. In questo tutorial andremo a creare un'istanza personalizzata del TinyWebDB che ci permetterà in maniera molto semplice di...

View Article
Browsing latest articles
Browse All 38 View Live