Thanks for this interesting approach.
Stephan
Am Freitag, 19. Februar 2010 00:34:54 schrieb Matías Costa:
> In general no, but in this simple usage it is posible. Writing from
> memory, the names will be wrong:
>
> class Info(models.Model)
> ...fields
>
> def article_context_rendered(
In general no, but in this simple usage it is posible. Writing from memory,
the names will be wrong:
class Info(models.Model)
...fields
def article_context_rendered(self):
t = templates.from_string(self.article_context)
return t.render({'info':self};
And in the template
Hi,
I use in the Admin interface the tinymce editor. It is possible to enter some
template code in the editor which is displayed in the template?
Example:
the view:
def client_info(request):
info = request.META
content = Article.objects.all()
template = loader.get_template('content':
3 matches
Mail list logo