On Fri, Jul 26, 2013 at 9:57 AM, Pepsodent Cola <[email protected]> wrote:
>
> I am having trouble understanding what the Debug wants me to fix and how
> to fix it?
> Isn't my models already defined?  Isn't my queryset already defined in
> variables filter_1, 2 and 3?
>
> Exception Type: ImproperlyConfigured
> Exception Value:
>
> 'IndexView' must define 'queryset' or 'model'

You must provide get_queryset() method, this will be represented in
the template context by whatever name you set in context_object_name.
If you want extra objects in the template context, you can add them by
overriding get_context_data(), but you must still provide the
get_queryset() method, it is not optional.

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to