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
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
2 matches
Mail list logo