Re: Ability to save 4xx messages to database

2013-04-11 Thread Anton Strogonoff
(A side-note, you actually can use Sentry for 404s as well with contrib middleware. It does the job, although for one project we re-implemented it to log 404s as DEBUG messages instead of INFO, just copied the class and changed a

Re: django.utils.simplejson + stdlib json

2013-04-11 Thread Jeremy Dunck
Yes, sorry, am mobile right now. Thanks Mr Ogier. :) On Apr 11, 2013, at 6:44 PM, Alex Ogier wrote: > I think what he is saying is that many third-party libraries call the > equivalent of django.utils.simplejson.dumps("...", > cls=DjangoJSONEncoder) which, despite django.utils.simplejson only >

Re: django.utils.simplejson + stdlib json

2013-04-11 Thread Alex Ogier
I think what he is saying is that many third-party libraries call the equivalent of django.utils.simplejson.dumps("...", cls=DjangoJSONEncoder) which, despite django.utils.simplejson only being in a pending deprecation state, is broken. On Thu, Apr 11, 2013 at 9:22 PM, Alex Gaynor wrote: > When d

Re: django.utils.simplejson + stdlib json

2013-04-11 Thread Alex Gaynor
When doing what? What do I need to do to trigger this? Alex On Apr 11, 2013 6:16 PM, "Jeremy Dunck" wrote: > If a user of django has simplejson installed, django itself will use both > the stdlib and simplejson. > > On Apr 11, 2013, at 5:54 PM, Alex Gaynor wrote: > > I basically agree with what

Re: django.utils.simplejson + stdlib json

2013-04-11 Thread Jeremy Dunck
If a user of django has simplejson installed, django itself will use both the stdlib and simplejson. On Apr 11, 2013, at 5:54 PM, Alex Gaynor wrote: > I basically agree with what Bob said on the ticket, it's unclear to me from > your email how this manifests, other than trying to use somethin

Re: django.utils.simplejson + stdlib json

2013-04-11 Thread Alex Gaynor
I basically agree with what Bob said on the ticket, it's unclear to me from your email how this manifests, other than trying to use something from the standard library with simplejson, which is obviously wrong. Alex On Thu, Apr 11, 2013 at 5:51 PM, Jeremy Dunck wrote: > I've just seen a docume

django.utils.simplejson + stdlib json

2013-04-11 Thread Jeremy Dunck
I've just seen a documented example of this breaking things in the wild. https://github.com/simplejson/simplejson/issues/37 I think we broke backwards-compat here - django 1.5.1. plus sentry 5.4.5 dies because django's own DjangoJSONEncoder depends on stdlib json, but sentry (and lots of things)

Re: Ability to save 4xx messages to database

2013-04-11 Thread Javier Guerra Giraldez
On Thu, Apr 11, 2013 at 2:09 PM, Babatunde Akinyanmi wrote: > Hi Javier, why no for small deployments, with a single django app server, just logging to a file and analyzing with grep works really really well. for larger deployments, where you have more than one django instance, it makes sense to

Re: Ability to save 4xx messages to database

2013-04-11 Thread Michael Manfre
>From https://docs.djangoproject.com/en/dev/howto/error-reporting/#errors "404 errors are logged using the logging framework. By default, these log records are ignored, but you can use them for error reporting by writing a handler and *configuring logging*

RE: Ability to save 4xx messages to database

2013-04-11 Thread Babatunde Akinyanmi
Hi Javier, why no Sent from my Windows Phone From: Javier Guerra Giraldez Sent: 4/11/2013 4:30 PM To: django-developers@googlegroups.com Subject: Re: Ability to save 4xx messages to database On Thu, Apr 11, 2013 at 10:21 AM, Val Neekman wrote: > Now, the $64 K question: is Django a good place for

Re: Support for WSGI applications within Django (Ticket #12091)

2013-04-11 Thread Alex Ogier
On Thu, Apr 11, 2013 at 1:02 PM, Carl Meyer wrote: > On 04/11/2013 08:31 AM, Gustavo Narea wrote: >> I decided to reimplement the patch I created 3 years ago in a separate >> project (twod.wsgi >> ), which >> means that it's possible to

Re: Support for WSGI applications within Django (Ticket #12091)

2013-04-11 Thread Carl Meyer
Hello Gustavo, On 04/11/2013 08:31 AM, Gustavo Narea wrote: > In the interest of finding a resolution to Ticket #12091 > , a 3-year-old ticket, I > wanted to bring this issue to your attention. > > I think that Django should have built-in support for r

Re: Request: Ability to add new databases dynamically.

2013-04-11 Thread charettes
If you're using PostgreSQL you could try creating a schema for each tenant. That's what django-tenancy does internally. You define which models are *tenant specific* by subclassing *TenantModel* and then you create instances of* Tenant* (or your the

Support for WSGI applications within Django (Ticket #12091)

2013-04-11 Thread Gustavo Narea
Hello, everybody. In the interest of finding a resolution to Ticket #12091, a 3-year-old ticket, I wanted to bring this issue to your attention. I think that Django should have built-in support for running WSGI applications from inside views. (NB: I

Re: Ability to save 4xx messages to database

2013-04-11 Thread Javier Guerra Giraldez
On Thu, Apr 11, 2013 at 10:21 AM, Val Neekman wrote: > Now, the $64 K question: is Django a good place for this? I'd say no. the best place would be a monitoring system. a surprisingly good approach is to use rsyslog protocol, and add a good event storage backend to the centralizing rsyslogd. i

Ability to save 4xx messages to database

2013-04-11 Thread Val Neekman
I am wondering if it would be a good idea to save a copy of *404s* in database instead of sending the email out to the ADMIN. The reason is, while I see a notification of some sort beneficial, with sites that items are added and deleted on a regular basis, all those 404 messages (emails) can be co

Request: Ability to add new databases dynamically.

2013-04-11 Thread jambunathan v.r
Right now, the django documentation advises against modifying the settings dynamically as some caching is involved. There are single tenant applications which need to talk to multiple databases and the different databases that it needs to talk to might not be known when the django server is star

Re: value|localize possibly breaking timezone display in templates

2013-04-11 Thread Aymeric Augustin
2013/4/11 Yo-Yo Ma > > Should the docs be updated to reflect this (i.e., it is intended), or > should I file a bug ticket? > The |localize template filter doesn't use the expects_localtime flag [1] because this flag requires to the filter to only accept datetimes as input. You can file a ticket.