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
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
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
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
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
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
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
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/
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
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\
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
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
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
13 matches
Mail list logo