Category: DevOps


  • Django logo (Photo credit: Wikipedia) Have you ever wondered what to do if you accidently delete the admin user in a django project? That’s a nasty problem in appearance, but not too serious in practice: Django provides a command line utility to solve that kind of problems: manage.py createsuperuser –username=joe –[email protected]

  • More accurate representation of relationship between URIs, URNs, and URLs. Revised version of File:URI Venn Diagram.svg, per Talk:Uniform Resource Identifier#Misleading Venn Diagram in a different way. (Photo credit: Wikipedia) NoReverseMatch error is nasty with python Django. It happens often when you add a new page. In this post I will explain you how to solve…

  • If you want to install Keepass2 under Debian Squeeze, you will have a problem: keepass2 is not in the official repositories. Only keepassX is available. In this blog post I explain how to install Keepass2 nevertheless. At first glance, I see two potential solutions: We can find the keepass2 package on the web, download it,…

  • Webfaction payment history (Photo credit: yashh) I hesitated a lot among several options for hosting a django based web app. After reading a lot of posts, I decided to go with webfaction, because there was a lot of positive feedback from existing customers and they have a two month cost free cancellation policy (that means…

  • In this post, I will explain you how to configure Django with PostgreSQL instead of MySQL. I did several changes locally before deploying my app to heroku and Amazon S3. I changed my configuration to use postgreSQL instead of mySQL. I did not have any data stored in MySQL, so I reinitiated a brand new…

  • Debian OpenLogo (Photo credit: Wikipedia) English: Nginx Logo Español: Logo de Nginx (Photo credit: Wikipedia) This post explains how to install nginx and gunicorn for django under linux Debian. From my readings, nginx should be used to serve static files. Nginx should proxy all other requests to gunicorn. These two tools are easy to install…

  • In this post, I will explain you how to use Celery and print warning messages to stdout. Cross section of celery stalk, showing vascular bundles, which include both phloem and xylem. (Photo credit: Wikipedia) If you use celery, you might be frustrated by the absence of the ‘print’ assertions that you put in your code…

  • Synaptic Package Manager 0.61 on ubuntu (Photo credit: Wikipedia) To install lxml in your virtualenv, do: sudo apt-get install libxml2-dev libxslt-deveasy_install lxml==2.2.8