>> > That's a really bad idea. Users can bring the whole site down with > malformed content if you do it like that. > > At least you should do something like that: > > try: > usercontent = render_to_string('whatever.html', {...}) > except TemplateSynatxError: # maybe other exceptions? > usercontent = '' > > render_to_response('main.html', { > 'usercontent': usercontent, > }) >
Dude, chill out. There are all sorts of things I could have put in there. I believe in pointing people in the right direction, not writing their code for them. If he's not already doing error trapping, he'd have to learn the hard way anyway. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---