def home(request): latest_blog_entry = None try: latest_blog_entry = BlogEntry.objects.latest('created') except BlogEntry.DoesNotExist: pass introduction_html = util.load_markdown("introduction.mdown") return render_to_response("index.html", { 'latest_blog_entry' : latest_blog_entry, 'introduction_html' : introduction_html }, context_instance=RequestContext(request))
def about(request): bio_html = util.load_markdown("about.mdown") return render_to_response("about.html", { 'bio_html' : bio_html }, context_instance=RequestContext(request))