Re: Manipulators that span a relationships?

2005-10-14 Thread Robert Wittams
Ian Maurer wrote: > I didn't get very far with the new branch. My template is failing to > render right off the bat... I haven't had a chance to investigate > this, but my templates were/are working just fine under the main > branch. Below is the end of my traceback... any thoughts? > > -ian I c

Re: templates with multiple repeating blocks

2005-10-14 Thread Robert Wittams
Alice wrote: > thanks :) > > did anything ever come of it? > > I agree that if a clean implementation cannot be done, it shouldn't. > There was another interesting idea that a block could be referenced as > a variable > > {% block content %} > {% endblock %} > > {{ content }} > > or perhaps >

Re: templates with multiple repeating blocks

2005-10-14 Thread Adrian Holovaty
On 10/14/05, Alice <[EMAIL PROTECTED]> wrote: > did anything ever come of it? > > I agree that if a clean implementation cannot be done, it shouldn't. > There was another interesting idea that a block could be referenced as > a variable > > {% block content %} > {% endblock %} > > {{ content }} >

Re: templates with multiple repeating blocks

2005-10-14 Thread Alice
thanks :) did anything ever come of it? I agree that if a clean implementation cannot be done, it shouldn't. There was another interesting idea that a block could be referenced as a variable {% block content %} {% endblock %} {{ content }} or perhaps {{ __content__ }} any feedback on this?

Re: Manipulators that span a relationships?

2005-10-14 Thread Ian Maurer
I didn't get very far with the new branch. My template is failing to render right off the bat... I haven't had a chance to investigate this, but my templates were/are working just fine under the main branch. Below is the end of my traceback... any thoughts? -ian return render_to_response('fo

Re: templates with multiple repeating blocks

2005-10-14 Thread Adrian Holovaty
On 10/14/05, Alice <[EMAIL PROTECTED]> wrote: > I thought it would be neat to have my main menu also displayed in the > footer but formatted differently Hey Alice, See this previous discussion: http://groups.google.com/group/django-users/browse_thread/thread/b2809610dcf8fa3e/6d8503293554cece A

templates with multiple repeating blocks

2005-10-14 Thread Alice
I thought it would be neat to have my main menu also displayed in the footer but formatted differently {% block main_menu %} ... {% endblock %} {% block main_menu %} ... {% endblock %} however I got this error "TemplateSyntaxError: 'block' tag with name 'main_menu' appears more than once"

Re: LIST[object.attribute] lookup in template

2005-10-14 Thread Robert Wittams
Andreas Stuhlmüller wrote: > Robert Wittams wrote: > >>I can't really work this out without more information. Could you file a >>ticket with a minimal example. ( or at least include a backtrace. ) > > > I didn't expect you to solve the problem. I just wanted to make sure > that template_decorat

Re: LIST[object.attribute] lookup in template

2005-10-14 Thread Andreas Stuhlmüller
Robert Wittams wrote: > I can't really work this out without more information. Could you file a > ticket with a minimal example. ( or at least include a backtrace. ) I didn't expect you to solve the problem. I just wanted to make sure that template_decorators.py doesn't depend on other new-admin

Re: LIST[object.attribute] lookup in template

2005-10-14 Thread Robert Wittams
Andreas Stuhlmüller wrote: > Robert Wittams wrote: > >>Alternatively, the easy way to do this would be to use >>template_decorators.py from the new-admin branch > > > The simple tag decorator looks like an extremely useful enhancement. At > the moment I'm not ready to completely switch over to

Re: Media Root Woes

2005-10-14 Thread Kenneth Gonsalves
On Friday 14 Oct 2005 1:27 pm, Sune Kirkeby wrote: > On 10/14/05, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > On Friday 14 Oct 2005 12:36 pm, Sune Kirkeby wrote: > > > You have to setup another web-server for your media-files, > > > and for the admin media-files. > > > > why? you can do every

Re: LIST[object.attribute] lookup in template

2005-10-14 Thread Andreas Stuhlmüller
Robert Wittams wrote: > Alternatively, the easy way to do this would be to use > template_decorators.py from the new-admin branch The simple tag decorator looks like an extremely useful enhancement. At the moment I'm not ready to completely switch over to the new-admin branch -- is it possible to

Re: Media Root Woes

2005-10-14 Thread Sune Kirkeby
On 10/14/05, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > On Friday 14 Oct 2005 12:36 pm, Sune Kirkeby wrote: > > You have to setup another web-server for your media-files, > > and for the admin media-files. > > why? you can do everything on the same webserver - at least i can :-) Okay. Ixnay

Re: Media Root Woes

2005-10-14 Thread Kenneth Gonsalves
On Friday 14 Oct 2005 12:36 pm, Sune Kirkeby wrote: > You have to setup another web-server for your media-files, > and for the admin media-files. why? you can do everything on the same webserver - at least i can :-) -- regards kg http://www.livejournal.com/users/lawgon tally ho! http://avsap.o

Re: Media Root Woes

2005-10-14 Thread Sune Kirkeby
On 10/13/05, jms <[EMAIL PROTECTED]> wrote: > I expected everything under the MEDIA_URL to be served from the > MEDIA_ROOT, but all I get are 404s: Django does not serve static files; MEDIA_URL tells Django the prefix it should use in media-references, MEDIA_ROOT tells Django where it should put