[svn r8152] Add beginnings of virtual survey binder: new Survey and ScannedImage models, survey parser. Still has lots of problems, but I need some help with the file upload aspect so am committing now. Biggest problem is trying to call save() on the images from the API. It needs arguments that I don't understand. Also, the # in our survey paths was causing trouble. I worked around this with a correctURL method which urlencodes the actual URL, but admin still tries to use a URL with a # in it.

This commit is contained in:
aaron
2009-01-15 07:22:54 +01:00
parent 96288429f3
commit 083b5a3f1d
7 changed files with 188 additions and 3 deletions

View File

@@ -27,10 +27,17 @@ urlpatterns = patterns('',
(r'^statistics/?$', stats),
(r'^survey/?$', surveyindex),
(r'^survey/(?P<survey_id>.*)$', survey),
(r'^admin/doc/?', include('django.contrib.admindocs.urls')),
(r'^admin/(.*)', admin.site.root),
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
(r'^survey_scans/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.SURVEYS, 'show_indexes':True}),
)