comparison news/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 5ba2508939f7
children 97f92a589de7
comparison
equal deleted inserted replaced
1031:e1c03da72818 1032:e932f2ecd4a7
2 Views for the News application. 2 Views for the News application.
3 """ 3 """
4 4
5 import datetime 5 import datetime
6 from django.conf import settings 6 from django.conf import settings
7 from django.template import RequestContext
8 from django.template.loader import render_to_string 7 from django.template.loader import render_to_string
9 from django.http import HttpResponseRedirect 8 from django.http import HttpResponseRedirect
10 from django.contrib.auth.decorators import login_required 9 from django.contrib.auth.decorators import login_required
11 from django.shortcuts import get_object_or_404 10 from django.shortcuts import get_object_or_404
12 from django.shortcuts import render 11 from django.shortcuts import render