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
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
2 matches
Mail list logo