Here's my list so far:
* The documentation for "get_FOO_display" is in a different location
than the documentation for "choices", and so is easy to miss, leading
to people giving up or producing nastily complex attempts at getting a
human-readable value out of a field with choices.
* Personally, I think all of the
"get_FOO_display"/"get_next_by_FOO"/etc. methods could be handled
better -- nobody ever thinks to search on those names, and so lots of
people never find those methods.
* The "include" method in URLConfs causes an insane amount of
confusion due to people thinking it pulls in a single specific view
instead of another URLConf, and the docs we have don't seem to be
preventing that.
* Lots of people get bewildering "can't parse remainder" exceptions
because they did {{ object.method() }} in a template instead of {{
object.method }}, and the docs which explain how dot-lookups resolve
don't really help much with that.
I'll be filing tickets with suggestions for all of these tonight, and
I've got a few more common pitfalls stashed away on a laptop that's
off for repair, so I'll ticket those when I get it back.
Anybody else got a list like this? I'd love to aggregate as many of
them as possible and get together a "hit list" of this stuff to
document as we go forward.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
Why - because the tutorials are the pretty much the first intro.
people have to Django, and they need to work smoothly.
I've done tutorial 1 in ticket #2592 but this needs to be looked over
by someone.
Regarding the get_FOO_display - definitely - I'm embarressed to admit,
but I'm just about to go uh 'refactor' my homegrown choices-to-display
name function because I completely missed this.
Finally, I'm sure a good dig over the django-users list will turn up a
lot of common misunderstandings etc which will reflect doc.
shortcomings. I think some info about debugging would be handy in one
of the tutorials too (e.g. "oops! we did something wrong, here's
Django's debug page, look what we can do here to find out what's
wrong...")
--Simon G.
A complete tutorial (not just a todo-list or a blog) with customized
middleware, templatetags, generic views is missing. Reading a doc is
boring, following a tutorial, even if it's a big one, which reflect a
real application with real problems is always appreciated.
I've already linked the symfony askeet project [1] which is a good example.
Just my 2cts,
David