Re: How to show the template reserved keyword on html.

2012-02-19 Thread Morris
HI Karen, Thanks for your reminding. I have moved to django-users. On Feb 20, 2:51 pm, Karen Tracey wrote: > Please ask questions about using Django on django-users. The topic of this > list is the development of Django itself. > > Karen -- You received this message because you are subscribed

Re: How to show the template reserved keyword on html.

2012-02-19 Thread Karen Tracey
Please ask questions about using Django on django-users. The topic of this list is the development of Django itself. Karen -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.

How to show the template reserved keyword on html.

2012-02-19 Thread Morris
Hi all, I would like to write some django note via template. I tried to show ""{{ sample }}"" on my website, but it's empty. I think django think it's a variable name. So, how to show {{ sample }} ? On the other hand, how to show template reserved word? Thanks a lot. -- You received t

Re: Revisiting multiline tags

2012-02-19 Thread Stephen Burrows
> Personally, I would like to be able to see a tag all at once (that is > without scrolling), even though I might have to scroll to get to the > start of it.  I believe this improves readability of the template. My > specific use case is with include tags with long template paths and > added contex

Re: Revisiting multiline tags

2012-02-19 Thread Adrian Holovaty
On Sat, Feb 18, 2012 at 12:04 AM, Glenn Washburn wrote: > I'd like to reopen discussion on the multiline tag issue (see: > https://code.djangoproject.com/ticket/8652) which was closed 3 three > years ago as "won't fix".  The last comment notes that this won't > happen as the decision has been made

Re: Revisiting multiline tags

2012-02-19 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Glenn, On 02/19/2012 07:06 PM, Glenn Washburn wrote: > Very brief I might add. He only alludes to one technical reason > saying: "error trapping can occur much earlier". I'm trying to > understand what is meant by this as well. I don't see how m

Re: Revisiting multiline tags

2012-02-19 Thread Glenn Washburn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 19 Feb 2012 10:01:06 -0700 Carl Meyer wrote: > Here's a discussion linked from #3888 in which Malcolm lays out in > brief why multiline tags have been rejected: > https://groups.google.com/forum/?fromgroups#!topic/django-developers/A17TJWd3YJ

Could prefetch_related be modified to utilize select_related for ForeignKey relations?

2012-02-19 Thread Yo-Yo Ma
Speaking with regards to the ORM method documented at https://docs.djangoproject.com/en/dev/ref/models/querysets/#prefetch-related Of course, ``prefetch_related`` uses a Pythonic join to attach reverse- related objects and avoids the N+1 queries problem, which of course is great. However, if you u

Re: Revisiting multiline tags

2012-02-19 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/19/2012 10:20 AM, Torsten Bronger wrote: > I've made the same observations as in the parallel posting: I18n > becomes awkward with single-line tags. We have dozens of lines like > > {% blocktrans with originator=entry.originator|get_really_full

Re: Revisiting multiline tags

2012-02-19 Thread Torsten Bronger
Hallöchen! Carl Meyer writes: > On 02/17/2012 11:04 PM, Glenn Washburn wrote: > >> I'd like to reopen discussion on the multiline tag issue (see: >> https://code.djangoproject.com/ticket/8652) which was closed 3 >> three years ago as "won't fix". The last comment notes that this >> won't happen

Re: Revisiting multiline tags

2012-02-19 Thread colinta
Here here! I think the django templating language is unnecessarily restrictive in many places, but this one *really* boggles me. Give me back my whitespace! (please) -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group,

Re: Revisiting multiline tags

2012-02-19 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/17/2012 11:04 PM, Glenn Washburn wrote: > I'd like to reopen discussion on the multiline tag issue (see: > https://code.djangoproject.com/ticket/8652) which was closed 3 three > years ago as "won't fix". The last comment notes that this won't >

Re: Django 1.4: call for release blockers

2012-02-19 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/19/2012 09:40 AM, Carl Meyer wrote: > On 02/18/2012 05:37 AM, Anssi Kääriäinen wrote: >> The second one is about .iterator() and .prefetch_related() >> interoperability. They are mutually exclusive (you need to fetch all >> the objects before y

Re: Django 1.4: call for release blockers

2012-02-19 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Anssi, On 02/18/2012 05:37 AM, Anssi Kääriäinen wrote: > The second one is about .iterator() and .prefetch_related() > interoperability. They are mutually exclusive (you need to fetch all > the objects before you can do prefetch. However, .iterator

Re: Class-based view decorators

2012-02-19 Thread Luke Plant
On 17/02/12 18:04, Tobia Conforto wrote: > Hello > > As a happy user of the class-based views, I wrote a couple of > higher-level decorators to make it easy to apply all the standard > decorators to them. > > The first is an updated version of method_decorator, made to accept > additional argume