Created
October 18, 2011 19:11
-
-
Save Gunio/1296378 to your computer and use it in GitHub Desktop.
Simple Django View Response
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.shortcuts import render_to_response | |
def home(request, input="No input supplied"): | |
output = input.upper() | |
return render_to_response('home.html', {'output': output}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This said 'outout' instead of 'output' - fixed now. Thanks for the tip!