Created
February 22, 2011 04:41
-
-
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
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.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