Ok. Now I've dealt with this returned None problem, but I still have no
idea what to do to keep my form content after clicking submit button. Does
next parmeter generated by login_required contain only link or also form
content?
W dniu środa, 27 maja 2020 15:58:22 UTC+2 użytkownik Jan Gregorczy
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_val
*I* have problem similar to this one:
https://stackoverflow.com/questions/50272631/django-form-data-lost-on-making-login-required-on-post
I want answer to be added if user is logged in otherwise redirect user to
login page, let him login and then add his answer. My problem is that I
lose content
3 matches
Mail list logo