adding ajax_upload route to urls
authorSeth Woodworth <seth@sethish.com>
Mon, 21 Jan 2013 20:07:43 +0000 (15:07 -0500)
committerSeth Woodworth <seth@sethish.com>
Mon, 21 Jan 2013 20:07:43 +0000 (15:07 -0500)
karmaworld/urls.py

index 0b45d1fc628fd43352d378f7e14eec57b5e4ce07..a4953040cdbcfcc5411a1f3c3c287437ff213518 100644 (file)
@@ -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<school_slug>[^/]+)/(?P<course_slug>[^/]+)/(?P<slug>[^/]+)$', \
         NoteDetailView.as_view(), name='note_detail'),
 
+    # uploading
+    url(r'ajax-upload$', AjaxFileUploader(), name='ajax_upload'),
+
     url(r'^$', ListView.as_view(model=Course), name='home'),
 )