Re: call a view several times in another view

2019-06-18 Thread Dan Davis
I don't think it is a a good idea to call a view from another view, but if you have an underlying function that used to be a view, and you want to call it to do the secondmethod, then that's a good way to begin to do more with Django. Another good way is to practice using the generic

call a view several times in another view

2019-06-18 Thread Sebastian Jung
Hello, I have a view like this: def secondmethod(request,entry): if request.method='POST': return request.POST.get('selection') render(request,'eintrag.html','entry':entry) def test(request): if request.method='POST': queryresult = model.objects.all() for