From 6b722b55ff697c78d4296f5ad48b36f5b8c03d0a Mon Sep 17 00:00:00 2001 From: Seth Woodworth Date: Mon, 21 Jan 2013 15:07:43 -0500 Subject: [PATCH] adding ajax_upload route to urls --- karmaworld/urls.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/karmaworld/urls.py b/karmaworld/urls.py index 0b45d1f..a495304 100644 --- a/karmaworld/urls.py +++ b/karmaworld/urls.py @@ -3,6 +3,7 @@ from django.conf.urls.defaults import patterns, include, url from django.views.generic import ListView, DetailView from django.views.generic.simple import direct_to_template +from karmaworld.apps.ajaxuploader.views import AjaxFileUploader from karmaworld.apps.courses.models import Course from karmaworld.apps.courses.views import CourseDetailView from karmaworld.apps.notes.views import NoteDetailView, RawNoteDetailView, raw_file @@ -27,5 +28,8 @@ urlpatterns = patterns('', url(r'^(?P[^/]+)/(?P[^/]+)/(?P[^/]+)$', \ NoteDetailView.as_view(), name='note_detail'), + # uploading + url(r'ajax-upload$', AjaxFileUploader(), name='ajax_upload'), + url(r'^$', ListView.as_view(model=Course), name='home'), ) -- 2.25.1