Commits

Anonymous committed 947f512 Draft

Try to use the new import location for django's urlpatterns

Comments (0)

Files changed (2)

src/djangobosssearch/bosssearch_urls.py

 '''
 URL patterns for the search and search results page.
 '''
-
-from django.conf.urls.defaults import url, patterns
+try:
+    from django.conf.urls import url, patterns
+except ImportError:
+    from django.conf.urls.defaults import url, patterns
 
 
 urlpatterns = patterns('djangobosssearch.views',

tests/testproject/urls.py

-from django.conf.urls.defaults import url, patterns, include, handler404, handler500
+try:
+    from django.conf.urls import url, patterns, include, handler404, handler500
+except ImportError:
+    from django.conf.urls.defaults import url, patterns, include, handler404, handler500
 
 
 urlpatterns = patterns('',