On 7/28/06, Guillaume Pratte <[EMAIL PROTECTED]> wrote:
> What I wan't to do is to create applications configuration files from a
> template. It's not a web-related project at all, but since I find Django so
> well done, I was trying to use it for something it was not conceived to
> perform.

As I said, the TEMPLATE_STRING_IF_INVALID setting might help you with
this; you can then run an automated check over the output file to see
if that string is present (and, thus, know if any expected variables
were not present).

But as Bill pointed out, the view is really the place to verify your
variable set and fill in anything that you know will be needed; the
template, in this case, is much more of a passive container for the
dictionary of variables and values passed in.

-- 
"May the forces of evil become confused on the way to your house."
  -- George Carlin

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to