MySQL and encoding

Today I had another encoding problem in my life...I had a file with sql inserts, encoded with utf-8. My unix terminal, also encoded with utf-8. I had a database as well, and both database and tables encoded with utf-8.My problem: when executing...

comments

TransDb: Pretty much easier

Today I've released a new version of TransDb, the Django package that allows storing text at database in more than one language (using the same field).New version is pretty much easier to use, after fixing many bugs, and avoiding the use of a...

comments

Media data without media directory

It's not a big trouble, but I wanted to remove the /media/ prefix on all my media links, like...and so on.This can be easily achieved by replacing in apache's configuration file:SetHandler NonebySetHandler NoneOf course you have to have all you...

comments

TransDb: Django’s i18n for database

Today I've created my own code for having (in Django) fields in more than one language stored in database. There were some other packages, but none of them useful for me (as commented here).TransDb's main goal is that is simple, for application...

comments

Django is “order sensitive”

Sometimes I forget that django's settings.py is a Python script, and not a plain configuration file. And forgetting it causes django to behave unexpectedly. A couple of examples that happened to are related to array sorting.Some days ago I...

comments

Common web features in Django

Here is a brief list of common web features, and the best way I know for achieving it in Django:- Breadcrumbs: use {{ block.super }} for recursive link inheritance [more info] Back button: use {{ request.META.HTTP_REFERER }} for linking to...

comments

The Gambia countdown

In less than two weeks I'll go back to The Gambia, this time with two friends.Flight information is next:Barcelona -> Banjul (Flight JK202, departing on Nov 20th at 18:45, arriving at 22:50)Banjul -> Barcelona (Flight JK203, departing on Nov 27th...

comments

Learning Chinese (你好 汉语)

Some weeks ago I started learning Chinese. Here I want to post some useful resources in the Internet that can help.- Nciku: dictionary, character drawing recognition, and word listening. Pinyin talker: just that :) Mandarin tools: word...

comments

DSNP 0.11 released

DSNP is a shell script that automatically setups a new Django project, with user custom settings.It's specially useful for users that create many Django projects following same patterns.After a first very simple release, version 0.11 has...

comments