Hi Jan,
On 27/05/2020 14.01, Jan Gregorczyk wrote:
> At the moment I'm getting this errror:
>
> The view questions.views.answer didn't return an HttpResponse object. It returned None instead.
>
Consider what will happen if the form is *not* valid, ie. this statement
returns false:
if form.is_valid():
Remember that functions in Python without an explicit return will
implicitly return None.
That should hopefully make it clear.
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/377a741e-e5d1-1b5d-1a91-e194a9d116a9%40stacktrace.dk.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment