django admin

Override adding plural “s” in django admin

February 26th, 2010

If you have non-english names for your models, they will look bad when django admin tries to make plural out of them by adding “s” in the end. Fortunately it is easy to override by defining “verbose_name_plural” in your model. Here is an example:

1
2
3
4
5
6
class Tag(models.Model):
    class Meta:
        verbose_name_plural = "Tagovi"
 
    ime = models.CharField(max_length="300")
    opis = models.TextField(blank = True)

Reasons why to use Django

February 25th, 2010

First of all, what is Django? Django is high-level Python Web framework that was released under BSD license in 2005. It emphasizes re-usability, rapid development and DRY (don’t repeat yourself) principle.
There are a lot of great web development frameworks avaliable, like Ruby on rails and Codeigniter for PHP that follow same principles so we could say that Django is just another fast development web framework but with different flavor. And this is why I like this flavor best.
Read the rest of this entry »