Re: Template Tag Not Reinitialized in Loop

2010-05-12 Thread Benjamin Wohlwend
Hi, On Wed, May 12, 2010 at 5:28 PM, subs...@gmail.com wrote: > What is the simple workaround that I'm missing? > > -Steve > in a nutshell, you save the name of the variable on initialization of the node and resolve it while rendering. See all the examples in django/template/defaulttags.py, e.h.

Re: Attach a technincal html response to email on server error

2011-11-13 Thread Benjamin Wohlwend
Hi Riccardo, On Sun, Nov 13, 2011 at 2:51 PM, Ric wrote: > > and what about create a model, save the traceback in the db, and > reopen it from the admin? > You should have a look at Sentry[1]. It does exactly what you want, and much more. Easily one of the best tools to monitor errors of your we

RFC: issue 13617

2010-10-24 Thread Benjamin Wohlwend
Hi, I reported #13617[1] a couple of months ago, and today Justin Bronn committed a fix for it. Unfortunately, the fix doesn't solve my issue (which I failed to describe correctly in the issue report, so the blame is on me) nor does it address a larger problem that I described in the ticket with t

Re: RFC: issue 13617

2010-10-25 Thread Benjamin Wohlwend
Hi, Russell, thanks for having a look at this. Much appreciated! On Mon, Oct 25, 2010 at 4:04 PM, Russell Keith-Magee wrote: > Responding so that > > "localize off" is a much better approach to localize > >  1) I think there is still a need for a template filter. There's an > analog here with au

Re: Migrating to class-based views and django.core.urlresolvers.reverse

2010-12-07 Thread Benjamin Wohlwend
Hi Daniel On Tue, Dec 7, 2010 at 6:08 PM, Daniel Swarbrick wrote: > Forgetting namespaces or existing named URL patterns for a moment, the > major difference is that with function-based views, we were giving a > qualified "module.function" parameter to reverse() or {% url %}. > > How can we do th

Re: table prefix and question of possible solution

2011-02-07 Thread Benjamin Wohlwend
omment hasn't fundamentally changed in the meantime, chances to get this in are probably grim. Regards, Benjamin Wohlwend [1]: http://code.djangoproject.com/ticket/5000#comment:5 -- You received this message because you are subscribed to the Google Groups "Django developers&quo

Re: Inline debugging

2011-02-10 Thread Benjamin Wohlwend
Hi, On Thu, Feb 10, 2011 at 8:44 AM, Matteius wrote: > > What I want to see (and possibly the closest I've seen it with was a > video on the django_command_extensions) is an interactive debugger > built into my test-dev server so I can have break pts, switch logic > values in place, etc. dynamica

Re: Google maps subclass of GeoModelAdmin

2008-10-15 Thread Benjamin Wohlwend
Hi, > That's exactly why: Google Maps aren't free to use in > non-publicly-accessible areas. Like, say, an admin interface. > I'm not sure if this is really the case. The Google Maps API FAQ[1] says this about the topic: > As long your site is generally accessible to consumers without > charge,

Re: HTTP Errors

2009-07-27 Thread Benjamin Wohlwend
Hi, On Mon, Jul 27, 2009 at 3:27 PM, Anton Bessonov wrote: > > http/__init__.py describe Http404 Exception as: > > class Http404(Exception): >pass > > You can make own Exception: > > class Http403(Exception): >pass > > It isn't quite that easy. Django special-cases Http404 (see django/cor

Reconsider 20383: limited contexts for makemessages

2013-07-04 Thread Benjamin Wohlwend
Hi, I recently hit a problem where I have to provide translations for a reusable app. In German (and most other languages, except English, it seems), there are different second-person pronouns used in different situations, see [1]. As an example, the sentence "Do you want to log in" in its two

Re: Streaming sitemaps

2013-07-25 Thread Benjamin Wohlwend
Hi Julian, after having a site almost taken down by an over-eager spider downloading the sitemaps dozens of times in parallel, I learned the lesson that large sitemaps shouldn't be rendered on demand. Since that day a few years ago, I always generate the sitemap periodically and let apache/nginx s