summaryrefslogtreecommitdiff
path: root/apps/locations/views.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2012-09-22 22:27:04 -0400
committerluxagraf <sng@luxagraf.net>2012-09-22 22:27:04 -0400
commitefb623af0bcb47d510501c282e1326b11343a29c (patch)
tree3a35fb19f5eba3b219c65277a5fb712cbe9604ac /apps/locations/views.py
parent0b481fd7931c2ae20ca21f89a87f2ba6a6c01e10 (diff)
site reorg
Diffstat (limited to 'apps/locations/views.py')
-rw-r--r--apps/locations/views.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/apps/locations/views.py b/apps/locations/views.py
deleted file mode 100644
index f360429..0000000
--- a/apps/locations/views.py
+++ /dev/null
@@ -1,25 +0,0 @@
-from django.shortcuts import render_to_response,get_object_or_404
-from django.template import RequestContext
-
-from blog.models import Entry
-from locations.models import Location, Country, Region, Route
-
-def list_view(request):
- context = {
- 'object_list' : Entry.objects.filter(status__exact=1),
- 'country_list' : Country.objects.filter(visited=True).exclude(name='default'),
- 'region_list' : Region.objects.all()
- }
- return render_to_response('archives/map.html', context, context_instance=RequestContext(request))
-
-from projects.shortcuts import render_to_geojson
-
-def data_json(request, id):
- qs = Route.objects.filter(pk=id)
- return render_to_geojson(
- qs,
- included_fields=['id',],
- geom_attribute='geometry',
- mimetype = 'application/json',
- pretty_print=True
- ) \ No newline at end of file