comparison gpp/core/views.py @ 127:2d299909e074

Adding markdown help to comments and forums. Still need to add it to a few other places that use the markItUp editor.
author Brian Neal <bgneal@gmail.com>
date Mon, 16 Nov 2009 01:00:28 +0000
parents dbd703f7d63a
children ab7830b067b3
comparison
equal deleted inserted replaced
126:b0d62247c3e4 127:2d299909e074
1 # Create your views here. 1 """
2 Views for the core application. These are mainly shared, common views
3 used by multiple applications.
4 """
5 from django.shortcuts import render_to_response
6 from django.template import RequestContext
7 from django.contrib.auth.decorators import login_required
8 from django.views.decorators.http import require_GET
9
10 @login_required
11 @require_GET
12 def markdown_help(request):
13 """
14 This view provides the Markdown help cheat sheet. It is expected
15 to be called via AJAX.
16 """
17 return render_to_response('core/markdown_help.html')