Wed 11 December 2019 snippets How to log raw XML requests and responses in Suds Suppose you are using Suds and you want to log every raw XML request and response to a SOAP service. This can be useful to debug an integration with a SOAP web service.
Wed 13 November 2019 web Django NGINX: deploy your Django project on a production server Deploy your Django project on NGINX web server following few simple steps. Going to development to production has never been easier!
Thu 09 November 2017 snippets A Django custom command to write model fields on an Excel file Suppose you need to write down your model fields on an Excel file, for example to complement the documentation of your code. Django has built in functions to introspect models and fields of an app, and you can leverage this API to have the information you need. You can use …
Wed 10 May 2017 sysadmin A simple Python email gateway Say you have a Django web application that you want to integrate with emails to make it possibile to send data and files to your web application over SMTP. The good news is that Python has a simple SMTP daemon in the standard library, together with modules to parse emails …
Wed 18 May 2016 web How to migrate your existing Django project to Heroku Recently I had some fun with Heroku, the well known PaaS provider. I had a small personal Django project I use for invoicing that I ran locally with ./manage.py runserver when needed. That was a perfect candidate for the Heroku free plan because I need to access the app …
Wed 08 October 2014 snippets Why I love Python – Expressiveness Here is one of those little things that make me love Python: d = {'a': (1,2), 'b': (3,4)} for k, (a, b) in d.items(): print k, a, b Prints: a 1 2 b 3 4 How cool is that? 😉
Thu 13 March 2014 utility How to build a pretty Excel timesheet using Toggl API and Python Since some months I’m using Toggl to track my work time, and I find it awesome! Toggl features a very powerful reporting system to have your timesheets filtered in many ways and exported in csv or pdf format, but I did not found the way to have an Excel …