On 10/11/06, patrickk <[EMAIL PROTECTED]> wrote:
>
> waylan, although I don´t understand your last/second suggestion, I
> managed to store my templates in the database.
> if you think your second suggestion is by far better than the first
> one ... could you please explain it again.
>
> my current solution:
> I´m storing templates for every user in the db with a name like "db/
> user/31/sidebar/", where "31" is the userid.
> then, in my primary template (loaded from the file-system), i´m
> including the template from the db using {% include sidebar_template %}.

Glad to hear it works. I guess I was thinking it woudn't know which
user to pull the sidebar for, but I see you got that worked out just
fine -- so just ingore my second suggestion.

>
> that works fine, although I have to include the {% load ... %}-tag
> for my sidebar templatetags within the db (that´s kind of strange).

Thats correct. Any load tags do not carry over from the parent
template when included. That behavior is by design.

>
> thanks,

You're welcome


-- 
----
Waylan Limberg
[EMAIL PROTECTED]

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