from django.conf.urls.defaults import *

from mce_filebrowser import views


urlpatterns = patterns('',
    url(r'^image/$', 
        views.filebrowser, 
        {'file_type': 'img'},
        name='mce-filebrowser-images'
    ),
    url(r'^file/$', 
        views.filebrowser, 
        {'file_type': 'doc'},
        name='mce-filebrowser-documents'
    ),
    url(r'^image/remove/(?P<item_id>\d+)/$', 
        views.filebrowser_remove_file, 
        {'file_type': 'img'},
        name='mce-filebrowser-remove-image'
    ),
    url(r'^file/remove/(?P<item_id>\d+)/$', 
        views.filebrowser_remove_file, 
        {'file_type': 'doc'},
        name='mce-filebrowser-remove-document'
    )
)
@@ -1,12 +1,21 @@
+try:%0A    
 from django.
@@ -44,9 +44,88 @@
 ort 
-*
+patterns, url%0Aexcept ImportError:%0A    from django.conf.urls import patterns, url
 %0A%0Afr
@@ -773,8 +773,9 @@
 %0A    )%0A)
+%0A

add django 1.6 compatability