from django.conf.urls.defaults import patterns, url

urlpatterns = patterns('',
    url(r'^fetch_items/(?P<app_label>[^\/]+)/(?P<model_name>[^\/]+)/(?P<field_name>[^\/]+)/$',
        'select2.views.fetch_items', name='select2_fetch_items'),
    url(r'^init_selection/(?P<app_label>[^\/]+)/(?P<model_name>[^\/]+)/(?P<field_name>[^\/]+)/$',
        'select2.views.init_selection', name='select2_init_selection'),
)

@@ -1,8 +1,84 @@
+try:%0A    from django.conf.urls import patterns, url%0Aexcept ImportError:%0A    
 from dja
@@ -122,16 +122,17 @@
 s, url%0A%0A
+%0A
 urlpatte

Change django.conf.urls import for Django 1.5+. fixes #8, #9