From c6cce8d2fe470b42740258e737877d94d1b3fdb2 Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Wed, 13 May 2009 05:27:43 +0100 Subject: [svn] 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. Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8152 by aaron @ 1/15/2009 6:22 AM --- urls.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'urls.py') diff --git a/urls.py b/urls.py index 787b1ff..309261b 100644 --- a/urls.py +++ b/urls.py @@ -27,10 +27,17 @@ urlpatterns = patterns('', (r'^statistics/?$', stats), + (r'^survey/?$', surveyindex), + (r'^survey/(?P.*)$', survey), + (r'^admin/doc/?', include('django.contrib.admindocs.urls')), (r'^admin/(.*)', admin.site.root), (r'^site_media/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}), + (r'^survey_scans/(?P.*)$', 'django.views.static.serve', + {'document_root': settings.SURVEYS, 'show_indexes':True}), + + ) -- cgit v1.2.3