So zeigen Sie die Python -Ausgabe auf HTML -Seite Django an

# Save it to a context variable in the views and pass it into the template

# In your views.py file
def index(request):
	output = 5 + 6    
    context = {'output' = output}
    return render(request, 'index.html', context)

# In your index.html template file
<html> {{ output }} </html>
Trained Tuna