Re: Using Django Template Engine

2007-11-14 Thread Brot

Hello Malcolm,

thank you for your reply.
Sorry, that I explained my problem too bad. In the meantime I found
the solution for my problem and It's really simple.
And it's a embarrassing situation for me, because the solution is
documented:
http://www.djangoproject.com/documentation/templates_python/#rendering-a-context

Bernd

On 14 Nov., 01:45, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2007-11-12 at 23:04 -0800, Brot wrote:
> > Hello,
>
> > I found a code example for "Using Markup" in the django wiki:
> >http://code.djangoproject.com/wiki/UsingMarkup
> > I need a similar solution, but with the internal django template
> > library. Is there any solution for this requirement?
>
> > I would like to store little html/template chunks in a database and
> > use them in a "normal" django template. I wouldn't use a markup-
> > language. The reason is, that I would like to use the template
> > functionality (e.g: url tag).
>
> I don't think you have explained your problem very well. Perhaps a (very
> short) example might help you to illustrate what's going wrong.
>
> You can store whatever you like in the database and use the model fields
> in a template directly, so I'm not really sure what you are asking that
> goes beyond that.
>
> Malcolm
>
> --
> Always try to be modest and be proud of it!http://www.pointy-stick.com/blog/


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



Re: Using Django Template Engine

2007-11-13 Thread Malcolm Tredinnick


On Mon, 2007-11-12 at 23:04 -0800, Brot wrote:
> Hello,
> 
> I found a code example for "Using Markup" in the django wiki:
> http://code.djangoproject.com/wiki/UsingMarkup
> I need a similar solution, but with the internal django template
> library. Is there any solution for this requirement?
> 
> I would like to store little html/template chunks in a database and
> use them in a "normal" django template. I wouldn't use a markup-
> language. The reason is, that I would like to use the template
> functionality (e.g: url tag).

I don't think you have explained your problem very well. Perhaps a (very
short) example might help you to illustrate what's going wrong.

You can store whatever you like in the database and use the model fields
in a template directly, so I'm not really sure what you are asking that
goes beyond that.


Malcolm

-- 
Always try to be modest and be proud of it! 
http://www.pointy-stick.com/blog/


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



Using Django Template Engine

2007-11-12 Thread Brot

Hello,

I found a code example for "Using Markup" in the django wiki:
http://code.djangoproject.com/wiki/UsingMarkup
I need a similar solution, but with the internal django template
library. Is there any solution for this requirement?

I would like to store little html/template chunks in a database and
use them in a "normal" django template. I wouldn't use a markup-
language. The reason is, that I would like to use the template
functionality (e.g: url tag).


Bernd


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