Re: RequestContext rarely used (branched from Feature reviews for 1.1)

2008-11-21 Thread Will McCutchen
On Nov 18, 4:40 pm, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote: > Out of curiosity, for those who want RequestContext added to > render_to_response, is there a reason you don't like using > direct_to_template instead? Holy smokes, that thought never crossed my mind, despite using both the dire

Re: Admin interface search queries not working for me

2007-09-28 Thread Will McCutchen
On Sep 27, 9:41 pm, yish <[EMAIL PROTECTED]> wrote: > I defined my search_fields for my model as > seach_fields ('name') > instead of > search_fields ['name'] > ... > If anyone is curious, what ended up happening is instead of iterating > across the search fields, it iterated across the letter

Re: #3075 - Ifequal tag extension to handle mask operators

2007-04-05 Thread Will McCutchen
On Apr 5, 5:25 am, "Yann VR" <[EMAIL PROTECTED]> wrote: > I just wanted to bring attention to the > tickethttp://code.djangoproject.com/ticket/3075 It looks like Adrian approves: http://code.djangoproject.com/ticket/3075#comment:6 Used like so, the intent is clear: {% ifequal a x and b y %} {%

Re: Sorry...

2007-03-27 Thread Will McCutchen
On Mar 27, 7:25 am, "Ben Ford" <[EMAIL PROTECTED]> wrote: > Wouldn't you know it I have a very good book on svn (the pragmatic one) but > it's in New Zealand and I'm in Indonesia! Doh! There's also the great and free SVN Book available on the web: http://svnbook.red-bean.com/ Hope this helps,

Re: specifying newforms-admin options

2007-01-22 Thread Will McCutchen
Lachlan Cannon wrote: > It feels right to me to have admin and the model separate. The way I think of > it > is this: Suppose I distribute an app and a user decides to use the app, but > doesn't run the auto-admin. With my admin information factored out in a > separate > file: admin.py, she's no

Re: New branch: newforms-admin

2007-01-22 Thread Will McCutchen
Adrian Holovaty wrote: > I'd like to take the clean route and move the admin definitions into a > separate file, or at least still in the models.py but not within the > models themselves. Of course, that's not as convenient as defining the > admin stuff directly within the model, but another solut

Re: Call for testing: New setup.py

2006-10-18 Thread Will McCutchen
sbain wrote: > How would one now recommend that a new Windows developer install Django > in a such a way as to facilitate keeping his Django updated to the > trunk? I only dabble with Django from time to time, but here is how I have it set up (the following assumes C:\Python24\ as the root): 1.

Re: Ticket #648 -- {# comment goes here #} style comments

2006-09-13 Thread Will McCutchen
No problem, I did the easy part. Figuring out where the tests go was a lot easier that actually adding the new syntax to the template system, I'm sure. I just hope this helps the new syntax get added. I really think it would be an important addition to the template system. Will. On 9/13/06,

Re: Ticket #648 -- {# comment goes here #} style comments

2006-09-13 Thread Will McCutchen
Hawkeye wrote: > if someone else has time to > write a few tests, I'd be appreciative. I have the time! I added a new patch that includes tests: http://code.djangoproject.com/ticket/648 --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: URLField says all links to Wikipedia are invalid

2006-08-28 Thread Will McCutchen
Ian Holsman wrote: > I would be +1 on this if it included the site domain in the user-agent. > having it this way will just cause wikipedia to block it when a > single badly behaving django-bot uses it. +1 on including the domain in the User Agent... good idea. --~--~-~--~~-

Re: flat values() in querysets

2006-08-04 Thread Will McCutchen
Adrian Holovaty wrote: > Sounds pretty good to me. Let's do it. I opened a ticket and submitted a patch: http://code.djangoproject.com/ticket/2482 My patch adds a keyword arguement to the 'values' method, as originally proposed. It could be adapted pretty easily to Gary's suggestion of a separa

Re: the template system's whitespace handling

2006-08-03 Thread Will McCutchen
Gary Wilson wrote: > In other words, leave lines that I add, but remove the empty lines that > had template tags on them. +1 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to thi

Re: Strip Whitespace Middleware

2006-08-01 Thread Will McCutchen
Doug Van Horn wrote: > Hopefully that makes the intent more clear. Yes, much more clear! For some reason, I thought you were only concerned with whitespace at the beginning and end of the response. Sorry for the trouble! Will. --~--~-~--~~~---~--~~ You receive

Re: Strip Whitespace Middleware

2006-07-31 Thread Will McCutchen
Doug Van Horn wrote: > I wrote a little Middleware class to strip trailing and leading > whitespace from a response: I may be misunderstanding something, but doesn't your middleware actually leave whitespace at the beginning and end of the response? If response.content = '\n\n\nHello.\n\n' it is