comparison core/views.py @ 1032:e932f2ecd4a7

Django 1.8 warnings / tech debt cleanup.
author Brian Neal <bgneal@gmail.com>
date Sat, 26 Dec 2015 15:10:55 -0600
parents 89b240fe9297
children a469445d8be3
comparison
equal deleted inserted replaced
1031:e1c03da72818 1032:e932f2ecd4a7
5 """ 5 """
6 import json 6 import json
7 7
8 from django.contrib.auth.models import User 8 from django.contrib.auth.models import User
9 from django.http import HttpResponse 9 from django.http import HttpResponse
10 from django.shortcuts import render_to_response 10 from django.shortcuts import render
11 from django.contrib.auth.decorators import login_required 11 from django.contrib.auth.decorators import login_required
12 from django.views.decorators.http import require_GET 12 from django.views.decorators.http import require_GET
13 from django.views.generic import TemplateView 13 from django.views.generic import TemplateView
14 14
15 15
19 """ 19 """
20 This view provides the Markdown help cheat sheet. It is expected 20 This view provides the Markdown help cheat sheet. It is expected
21 to be called via AJAX. 21 to be called via AJAX.
22 22
23 """ 23 """
24 return render_to_response('core/markdown_help.html') 24 return render(request, 'core/markdown_help.html')
25 25
26 26
27 def ajax_users(request): 27 def ajax_users(request):
28 """ 28 """
29 If the user is authenticated, return a JSON array of strings of usernames 29 If the user is authenticated, return a JSON array of strings of usernames