Re: Newbie question about url and seo

2010-08-20 Thread David Euzen
Hello, you should think of it in terms of ressource, not of file. URLs are about ressources not about files even if sometimes ressources are files. Django's way to build URLs is flexible. URLs built this way can make much more sense that URLs built upon file path. ie www.yourdomain.com/articles/2

Can't override a ForeignKey field in a model-generated form

2010-05-31 Thread David Euzen
Using Django 1.2, I've got a "Niveau" class in models.py. That class contains an auto- refering field called "niveau" as a ForeignKey field. I use this class to store a tree structure: the "niveau" field references a "Niveau" instance's parent. class Niveau(models.Model): TYPES=( ('CAMP', 'Ca