Hi django fridayers !
Today on python friday, we will discuss the model and data migration of django.
Many of you are probably developing the web app in python and are absolutely amazed about how easy it to create a database schema from your django models. Just run an manage.py syncdb and …voila ! Your brand new application has all the support needed in the backend database.
But let’s face it, this is not really practical when it comes to modify an application that is ALREADY online and have data (registered users, stored personal information, …).
read the rest of this entry »
12 February 10
sebastien requiem
Hi everyone,
Welcome for the first edition for python-friday ! This python friday will be dedicated to the so popular django web framework because I really have my hands in it for the time being.
Django offers a very nice User class to manage all sort of users, set rights, contact information and so on. But sometimes, you want to extend that class to add some extra information.
The problem:
You want to use your – let’s call it – Customer class as the central user class and authenticate using django’s user modules.
The solution:
Extend the user classs to add your data and configure django framework to use your new class as a middleware and authenticate on it.
read the rest of this entry »
22 January 10
sebastien requiem
Sometimes ago, a friend of mine recommended me to have a look at python language. Very quickly I got hooked by how easy and developer friendly is that language. The language is straight forward and the number of loadable modules is absolutely amazing.
So we go on our python serie with a small piece of code that could be useful for python developers who want to dynamically load ‘packages’ (called on the fly import)
The problem:
Being able to load dynamically (at runtime) some packages to extend your code.
Solution:
in all this tutorial, we will use the so unfamous __import__ python builtin.
read the rest of this entry »
18 January 10
sebastien requiem
New Layout… w00t.
17 January 10
sebastien requiem
Hi everyone,
It’s been a while since I haven’t post anything here. Well, the truth is I have been pretty busy with some projects. And I’ve been able to play with a Buffalo TeraStation Duo with 2x512GB.
But let’s dig in what we are here for, Debian Install.
read the rest of this entry »
07 September 09
sebastien requiem
As a new freelancer, I decided to create my own business cards using moo services. This website allow you to create collectors business cards. The principle is simple, you can upload one image per card so the Verso of the card will be different each time.
My problem : How to create a business card that match my website layout and make it uniq at the same time ?
read the rest of this entry »
14 April 09
sebastien requiem
A long time ago, I downloaded a .bin/.cue file on my Mac and Suprize ! the famous (un)popular format is not handled by Mac os X (10.5 at least … ) so I couldn’t mount it properly.
read the rest of this entry »
13 April 09
sebastien requiem
Eric A. Meyer explain the line-height CSS property. And it does it well. Feel free to check the w3c documentation for further (usefull) information.
23 November 08
sebastien requiem