diff options
author | Dan McGee <dan@archlinux.org> | 2012-03-23 18:29:42 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-23 19:54:40 -0500 |
commit | b8c20439c091aaa56e772441e6c3a7e57e8ef2d4 (patch) | |
tree | f7c7922c5ebb3b9a29fb2c170974dea5e4cf5761 /mirrors | |
parent | 0545e3e0ec864eaed4facc94158e3ed9da1dfb2b (diff) |
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 'mirrors')
-rw-r--r-- | mirrors/urls.py | 2 | ||||
-rw-r--r-- | mirrors/urls_mirrorlist.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mirrors/urls.py b/mirrors/urls.py index fed9c807..f002e9d6 100644 --- a/mirrors/urls.py +++ b/mirrors/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls.defaults import patterns +from django.conf.urls import patterns urlpatterns = patterns('mirrors.views', (r'^$', 'mirrors', {}, 'mirror-list'), diff --git a/mirrors/urls_mirrorlist.py b/mirrors/urls_mirrorlist.py index 70bc18d2..e0f44c78 100644 --- a/mirrors/urls_mirrorlist.py +++ b/mirrors/urls_mirrorlist.py @@ -1,4 +1,4 @@ -from django.conf.urls.defaults import patterns +from django.conf.urls import patterns urlpatterns = patterns('mirrors.views', (r'^$', 'generate_mirrorlist', {}, 'mirrorlist'), |