Created
March 27, 2013 18:51
-
-
Save aniruddha-adhikary/5256976 to your computer and use it in GitHub Desktop.
Fixed Request Context
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 | |
from django.template import RequestContext | |
def about(request): | |
return render_to_response("about.html", | |
{'page_title': 'About us', | |
#and other stuff | |
}, | |
RequestContext(request)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment