Try overriding the save method in your model as documented here: http://www.djangoproject.com/documentation/model_api/#overriding-default-model-methods
If you only want to create the directory when a new entry is made try something like this: def save(self): # check if we are updating or creating a new entry if self.id: # create your dir here super(Registry, self).save() Hope this helps, Sean Henhiskan wrote: > Hi fellows, > I have been using Django administration via Web to manage my > application, but now need one more functionality, i.e., when I save a > new register the application should be creates, for example, a new > directory tree (/var/newregister/). > Where can I add this feature?. I have used postgres, may have > incorparated this in a trigger? > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---