Hi all, An app I'm working on has a model that, similar to the Flatpages app model, has a "template" field to allow users to specify an alternate template for displaying the object detail view.
What I'd like to do though is to make this a choice field that pulls its options dynamically from a directory on the template path. So for example, I can create a directory like "templates/myapp/entry_detail/" and have the choice field simply look into that directory and list its contents as options. I could figure it out using an absolute filesystem path, but I'd like to make it work within the context of the "template_dirs" behavior, so it's more portable. I guess the main question is, is there some function I can use to return a directory on the template path? Thanks for any assistance! Best, Patrick -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.