Skip to content

Instantly share code, notes, and snippets.

@Gunio
Created October 18, 2011 19:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gunio/1296378 to your computer and use it in GitHub Desktop.
Save Gunio/1296378 to your computer and use it in GitHub Desktop.
Simple Django View Response
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})
@Gunio
Copy link
Author

Gunio commented Oct 19, 2011

This said 'outout' instead of 'output' - fixed now. Thanks for the tip!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment