Answer the question
In order to leave comments, you need to log in
How to get some.html file from views.py in Django?
def wrongwerbs(request):
global ru, en, shit, errors, right, userWord
if request.method == "POST":
userWord = request.POST['word'].lower().strip()
ru.pop(0)
if userWord == en.pop(0):
right += 1
print("It's right")
else:
errors += 1
print("It's not correct")
if errors + right == 5:
# Здесь мне нужно получить файл "the_end.html", но не получается
return redirect('/werbs/templates/werbs/the_end.html')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question