annotate bandmap/urls.py @ 973:6f55c086db1e

Guess file extension based on content-type. When downloading a file, and no path is supplied to store it, guess the file extension using mimetypes and the content-type header. Also supply a unit test for the HotLinkImageForm.
author Brian Neal <bgneal@gmail.com>
date Thu, 01 Oct 2015 19:44:45 -0500
parents 5103edd3acc4
children 5ba2508939f7
rev   line source
bgneal@820 1 """urls for the bandmap application"""
bgneal@820 2 from django.conf.urls import patterns, url
bgneal@820 3
bgneal@820 4 urlpatterns = patterns('',
bgneal@820 5 url(r'^$',
bgneal@820 6 'bandmap.views.map_view',
bgneal@820 7 name='bandmap-map'),
bgneal@820 8 url(r'^add/$',
bgneal@820 9 'bandmap.views.add_band',
bgneal@820 10 name='bandmap-add'),
bgneal@827 11 url(r'^query/$',
bgneal@827 12 'bandmap.views.query',
bgneal@827 13 name='bandmap-query'),
bgneal@820 14 )