Re: Generic views, QuerySet and coupling

2006-03-20 Thread James Bennett
On 3/19/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > I think good documentation is the best way to solve this one. ...snip... > Assuming the URLconf is in a file "urls.py" and the models are in a > file "models.py" in the same directory, you can just do this: > > from models import Entry

Re: Generic views, QuerySet and coupling

2006-03-19 Thread Adrian Holovaty
On 3/18/06, James Bennett <[EMAIL PROTECTED]> wrote: > 1. The new example of usage for a generic view is counterintuitive; > now we pass a QuerySet instead of the app_label/module_name, which is > fine, but the example on the wiki is: > > from myproject.blog.models import Entry > info_dict = {'que

Generic views, QuerySet and coupling

2006-03-18 Thread James Bennett
Last night in #django a couple of good points were brought up by someone who was just starting to explore Django and had decided to learn from magic-removal rather than trunk; both of them, I think, are worthy of discussion, so here goes: 1. The new example of usage for a generic view is counteri