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 ArticleHow 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 ArticleBuilding 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 ArticleDjango 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 ArticleUnderstanding 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 ArticleFull 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 ArticleReversing 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 ArticleMy 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 ArticleConvertire 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 ArticleTutorial 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
More Pages to Explore .....