New DSNP version

DSNP is a simple and customizable Python script, that automatically creates a working Django project.Project (and application) creation in Django are very openend and flexible, but sometimes is useful getting all the work done for you,...

comments

Django L10n

This Sunday, I participated in This Week in Django, and tried to give some ideas on Django localization.Here I'll post some of the ideas of the interview (and some that I missed), for serving as reference:How to translate your application (quick...

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

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

Django spanish localflavor at trunk

Today has been committed to Django trunk version spanish localflavor patch.It includes selector fields for provinces and regions, and validation form functions for postal codes, phone numbers, and nif and ccc codes.Patch was started by Ricardo J...

comments