Skip to content

Commit f9425ba

Browse files
committed
Recover django import patterns, url ImportError
1 parent dc10d45 commit f9425ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

djcelery/monproj/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from django.conf.urls import (patterns, include, url,
55
handler500, handler404)
66
except ImportError:
7-
from django.conf.urls import (patterns, include, url, # noqa
7+
from django.conf.urls.defaults import (patterns, include, url, # noqa
88
handler500, handler404)
99
from django.contrib import admin
1010

djcelery/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
try:
1717
from django.conf.urls import patterns, url
1818
except ImportError: # deprecated since Django 1.4
19-
from django.conf.urls import patterns, url # noqa
19+
from django.conf.urls.defaults import patterns, url # noqa
2020

2121
from . import views
2222

0 commit comments

Comments
 (0)