summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-03-24 00:29:42 +0100
committerDan McGee <dan@archlinux.org>2012-03-24 01:54:40 +0100
commitb8c20439c091aaa56e772441e6c3a7e57e8ef2d4 (patch)
treef7c7922c5ebb3b9a29fb2c170974dea5e4cf5761 /packages
parent0545e3e0ec864eaed4facc94158e3ed9da1dfb2b (diff)
downloadarchweb-b8c20439c091aaa56e772441e6c3a7e57e8ef2d4.tar.gz
archweb-b8c20439c091aaa56e772441e6c3a7e57e8ef2d4.tar.xz
Change Django urls.py import
Until Django 1.3, the functions include(), patterns() and url() plus handler404, handler500 were located in a django.conf.urls.defaults module. In Django 1.4, they live in django.conf.urls. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/urls.py2
-rw-r--r--packages/urls_groups.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/urls.py b/packages/urls.py
index 52b09d2..7e12a23 100644
--- a/packages/urls.py
+++ b/packages/urls.py
@@ -1,4 +1,4 @@
-from django.conf.urls.defaults import include, patterns
+from django.conf.urls import include, patterns
package_patterns = patterns('packages.views',
(r'^$', 'details'),
diff --git a/packages/urls_groups.py b/packages/urls_groups.py
index d609944..49ced14 100644
--- a/packages/urls_groups.py
+++ b/packages/urls_groups.py
@@ -1,4 +1,4 @@
-from django.conf.urls.defaults import patterns
+from django.conf.urls import patterns
urlpatterns = patterns('packages.views',
(r'^$', 'groups', {}, 'groups-list'),