Re: sorting issue

2021-09-12 Thread Geoff Kuenning
How about creating a function inside protein, e.g. protein.href, that returns the proper URL? Then you could write {{ protein.name }} in the template. (If that trailing star is necessary, you could also have a function to generate that, e.g. protein.starname.) On Saturday, September 11, 2021

Extracting results of a join

2016-10-10 Thread Geoff Kuenning
an do it so much faster. (And I'll note that if AlbumOrder had more entries, the loop would take far longer.) (I've thought about issuing the join directly from my code and reading from a database cursor, but that seems un-Djangoish.) -- Geoff Kuenning ge...@cs.hmc.edu http://www.cs.hmc.edu/~geoff/ S

Re: change values in "select list"

2011-07-06 Thread Geoff Kuenning
On Jul 6, 2:03 am, Tom Evans <tevans...@googlemail.com> wrote: > On Tue, Jul 5, 2011 at 12:53 PM, Geoff Kuenning <ge...@cs.hmc.edu> wrote: > > > On Jul 4, 11:10 pm, Tom Evans <tevans...@googlemail.com> wrote: > > >> All of this is explained in the doc

Re: change values in "select list"

2011-07-05 Thread Geoff Kuenning
On Jul 5, 2:00 am, Andre Terra wrote: > For what it's worth, it will do you good to name everything in > English, even if it's not your native language. Python's keywords are > in English (if, while, for, class, return, break...) and sticking to > one language makes the

Re: change values in "select list"

2011-07-05 Thread Geoff Kuenning
On Jul 4, 11:10 pm, Tom Evans wrote: > All of this is explained in the docs. Read the docs. He did; he said he did in his previous posting. But although the docs are far better than many, I'm not sure I've _ever_ seen documentation that answered every question

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-01 Thread Geoff Kuenning
If your mail reader reformats text, IMHO it's broken. At a minimum, it ought to give you the option of seeing a message without "helpfully" reformatting it. I see little harm in asking (politely) that people go through the significant hassle of posting code in two places (one of which may be

Re: Curious int/float/division/math 'gotcha' in py (discussion)

2011-06-29 Thread Geoff Kuenning
On Jun 29, 1:37 am, Tom Evans wrote: > Damn, this was the bit I meant to comment upon - hard and fast rules > are dangerous. Integral types are distinctly different to floating > point types, and you should be aware of which one you are using and > why. You definitely

Re: Nested template variable lookup

2011-05-19 Thread Geoff Kuenning
Thanks, Tom, that was HUGELY helpful! I had been thinking about using a filter expression, but it's so much easier to have sample code. I have another question, though (not just for Tom). The article Tom linked to (http://groups.google.com/group/django-users/browse_thread/thread/

Nested template variable lookup

2011-05-18 Thread Geoff Kuenning
I'm using Django 1.0.2, with plans to upgrade to 1.2.5 at some point. I have an application that basically just displays the results of a database lookup as a table. In a fit of DRY-ism, I decided it would be cool if my application inspected the model to figure out what columns to display; that

Google App Engine - Could not import settings

2009-08-06 Thread Geoff
and fiddling with PYTHONPATH but without success so far. Any hints gratefully received. Regards Geoff C:\Documents and Settings\GeoffK\My Documents\ing\ingsite>echo %PATH% C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS \system32\WindowsPowerShell\v1.0;;C:\Python25;C:\Python25\

Re: Newbie problem: AttributeError with ModelForm

2009-07-06 Thread Geoff
Thanks Daniel that was the answer. As someone from a database background I like the way Django can do so much from it's models with little coding. Regards Geoff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Newbie problem: AttributeError with ModelForm

2009-07-03 Thread Geoff
something elementary? Any hints gratefully received. Regards Geoff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com

Django Developer Needed

2007-06-21 Thread Geoff
Here's an add for a django programmer for a new magazine I'm not sure what it pays, but I think it would be decent contract work that can turn into more, I can get anyone interested in touch with the publisher, just mail me ...snip... Seeking Web Programmer for Indie Film Magazine