Re: Future url tag behaves unexpectedly

2012-08-29 Thread Russell Keith-Magee
On Thu, Aug 23, 2012 at 10:17 PM, Klaas van Schelven wrote: > Hi all, > > I'm not really ready to post this as a bug, please help me correct any > possible misunderstandings before I do so. > > I was gently pushed towards the future url template tag due to my > screen filling up with DeprecationWa

Re: iPython behaves strangely only with Django shell

2012-08-29 Thread Alex Ogier
On Wed, Aug 29, 2012 at 10:58 AM, Yo-Yo Ma wrote: > The following gist demonstrates a strange phenomenon, which occurs when I > use ``python manage.py shell``, but not when I use ``ipython`` alone. > > https://gist.github.com/f8c2fd97647de90d915a > > I'm not certain whether this is a known issue,

Re: ./manage.py loaddata calls .save() on all models... should it?

2012-08-29 Thread Hobson Lane
OOPS, turns out I had a post_save receiver creating the reciprocal rel. So this is not a django problem. On Wednesday, August 29, 2012 1:40:52 PM UTC-7, Hobson Lane wrote: > > In django 1.4, my model save() gets called for ManyToManyField "through" > models for loaddata on that model: > > cl

Re: ./manage.py loaddata calls .save() on all models... should it?

2012-08-29 Thread Hobson Lane
In django 1.4, my model save() gets called for ManyToManyField "through" models for loaddata on that model: class Entity(models.Model): related_entities = models.ManyToManyField('self', through='EntityRelationship', symmetrical=False, related_name='related_to+') class Entity

Re: Example on bitmap charts

2012-08-29 Thread Karen Tracey
Please post questions about using Django to django-users. The topic of this list is the development of Django itself. Thanks, 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@goog

Re: Example on bitmap charts

2012-08-29 Thread Dharol Tankersley
This post is really old so hope i'm not questioning into the void, but I am 2-weeks new to django and trying to figure out the final step to insert the reportlab charts into the django template - the cookbook entry is exceedingly clear about views.py

Re: Django Oracle backend vs. numbers

2012-08-29 Thread Ian Kelly
On Wed, Aug 29, 2012 at 10:34 AM, Jacob Kaplan-Moss wrote: > Hey Shai -- > > Generally sounds like a good idea, I don't see why this shouldn't go > in. You might want to wait until someone with more Oracle experience > chimes in, but I'm having a hard time seeing why a number -> str -> > number da

Re: iPython behaves strangely only with Django shell

2012-08-29 Thread Alex Gaynor
On Wed, Aug 29, 2012 at 9:37 AM, Jacob Kaplan-Moss wrote: > This looks like some sort of error in your environment; I can't reproduce > it:: > > $ ./manage.py shell > In [1]: import decimal > > In [2]: class F(object): >...: d = decimal.Decimal('0') >...: > > In

Re: iPython behaves strangely only with Django shell

2012-08-29 Thread Jacob Kaplan-Moss
This looks like some sort of error in your environment; I can't reproduce it:: $ ./manage.py shell In [1]: import decimal In [2]: class F(object): ...: d = decimal.Decimal('0') ...: In [3]: $ ipython In [1]: import decimal In [2] >>> class F(objec

Re: Django Oracle backend vs. numbers

2012-08-29 Thread Jacob Kaplan-Moss
Hey Shai -- Generally sounds like a good idea, I don't see why this shouldn't go in. You might want to wait until someone with more Oracle experience chimes in, but I'm having a hard time seeing why a number -> str -> number dance would be a good idea. I'm generally adverse to introducing more se

iPython behaves strangely only with Django shell

2012-08-29 Thread Yo-Yo Ma
The following gist demonstrates a strange phenomenon, which occurs when I use ``python manage.py shell``, but not when I use ``ipython`` alone. https://gist.github.com/f8c2fd97647de90d915a I'm not certain whether this is a known issue, or whether it's even a Django bug, but certainly nothing of

Re: Future url tag behaves unexpectedly

2012-08-29 Thread Luke Granger-Brown
My thoughts: On Thu, Aug 23, 2012 at 3:17 PM, Klaas van Schelven < klaasvanschel...@gmail.com> wrote: > > However, this fails, since the regular template variable resolution > process is reused to resolve 'link'. Since link is a callable Django > will attempt to call it. However, 'other_view' shou

Re: Future url tag behaves unexpectedly

2012-08-29 Thread Klaas van Schelven
No one ready to weigh in on this? :-( On Thu, Aug 23, 2012 at 4:17 PM, Klaas van Schelven < klaasvanschel...@gmail.com> wrote: > Hi all, > > I'm not really ready to post this as a bug, please help me correct any > possible misunderstandings before I do so. > > I was gently pushed towards the futu

Django Oracle backend vs. numbers

2012-08-29 Thread Shai Berger
Hi Django developers, I've been working with Oracle on a project with some performance requirements, and we've noticed long ago that the Django Oracle backend performs significantly worse than other backends; we've been able to profile it and see that, indeed, a lot of time is spent in processi

Re: Yak shaving the test framework on the way to pluggable user models (#3011)

2012-08-29 Thread Alex Ogier
On Wed, Aug 29, 2012 at 3:44 AM, Russell Keith-Magee wrote: > > I suppose you could see it as a semantic nuance. However, to my mind, > there is a different. A skipped test is something that could -- or > even *should* be run -- but can't due to missing some optional > prerequisite. In this case,

Re: Yak shaving the test framework on the way to pluggable user models (#3011)

2012-08-29 Thread Russell Keith-Magee
On Wed, Aug 29, 2012 at 2:01 PM, ptone wrote: > > > On Saturday, August 25, 2012 5:32:08 PM UTC-7, Russell Keith-Magee wrote: >> >> On Sat, Aug 25, 2012 at 4:24 PM, Aymeric Augustin >> wrote: >> > On 25 août 2012, at 10:15, Russell Keith-Magee wrote: >> > >> >> We *could* just mark the affected t