Friday, November 1, 2019

Re: Generic Views in Django Tutorial Not Working

Hi Mike,

On 01/11/2019 09.14, Mike Starr wrote:
> Hi! There's a lot of error message to copy and paste so please request
> what you would like to see specifically. I am at
> https://docs.djangoproject.com/en/2.2/intro/tutorial04/#use-generic-views-less-code-is-better in
> the Django tutorial and it seems replacing HTTPRequests with
> GenericViews broke the web server. I followed the instructions and now
> have this:

Have you tried doing as the error message suggests:

>
> IndexView is missing a QuerySet. Define IndexView.model, IndexView.queryset, or override IndexView.get_queryset().
>

?

Kind regards,

Kasper Laudrup

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f49b74ab-3b63-ebdc-edbf-990a07ef37c4%40stacktrace.dk.

No comments:

Post a Comment