Skip to content

Instantly share code, notes, and snippets.

@mgan59
Created February 22, 2011 04:41
Show Gist options
  • Save mgan59/838240 to your computer and use it in GitHub Desktop.
Save mgan59/838240 to your computer and use it in GitHub Desktop.
a basic cookie cutter view pastie with general imports and a base index action
from django.http import Http404, HttpResponse, HttpResponsePermanentRedirect
from django.template import RequestContext, loader
from django.shortcuts import render_to_response
def index(request):
cxt = {}
return render_to_response('main/index.html',
cxt, context_instance=RequestContext(request))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment