Mercurial > public > sg101
comparison membermap/views.py @ 679:89b240fe9297
For Django 1.5.2: import json; django.utils.simplejson is deprecated.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 15 Aug 2013 20:14:33 -0500 |
parents | ee87ea74d46b |
children | 9e803323a0d0 |
comparison
equal
deleted
inserted
replaced
678:38a198ea8c61 | 679:89b240fe9297 |
---|---|
1 """ | 1 """ |
2 Views for the membermap application. | 2 Views for the membermap application. |
3 | |
3 """ | 4 """ |
5 import json | |
6 | |
4 from django.shortcuts import render_to_response | 7 from django.shortcuts import render_to_response |
5 from django.template.loader import render_to_string | 8 from django.template.loader import render_to_string |
6 from django.template import RequestContext | 9 from django.template import RequestContext |
7 from django.http import HttpResponse | 10 from django.http import HttpResponse |
8 from django.http import HttpResponseBadRequest | 11 from django.http import HttpResponseBadRequest |
9 from django.http import HttpResponseForbidden | 12 from django.http import HttpResponseForbidden |
10 from django.views.decorators.http import require_POST | 13 from django.views.decorators.http import require_POST |
11 import django.utils.simplejson as json | |
12 from django.core.cache import cache | 14 from django.core.cache import cache |
13 | 15 |
14 from membermap.models import MapEntry | 16 from membermap.models import MapEntry |
15 from membermap.forms import MapEntryForm | 17 from membermap.forms import MapEntryForm |
16 from bio.models import UserProfile | 18 from bio.models import UserProfile |