From 154eb7f7c28ad579ce81d10a1d6eb888f6c5f228 Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Fri, 27 Sep 2013 18:19:49 +0000 Subject: [PATCH] Replace deprecated imports with actual django.conf.urls.defaults is deprecated since django 1.5 old: from django.conf.urls.defaults import * new: from django.conf.urls import * --- pyi2phosts/jump/urls.py | 2 +- pyi2phosts/latest/urls.py | 2 +- pyi2phosts/postkey/urls.py | 2 +- pyi2phosts/search/urls.py | 2 +- pyi2phosts/urls.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyi2phosts/jump/urls.py b/pyi2phosts/jump/urls.py index b664ae5..7fb61b2 100644 --- a/pyi2phosts/jump/urls.py +++ b/pyi2phosts/jump/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls.defaults import * +from django.conf.urls import * urlpatterns = patterns('pyi2phosts.jump.views', (r'^([^$/]+)', 'jumper'), diff --git a/pyi2phosts/latest/urls.py b/pyi2phosts/latest/urls.py index 9798474..61e55ab 100644 --- a/pyi2phosts/latest/urls.py +++ b/pyi2phosts/latest/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls.defaults import * +from django.conf.urls import * from pyi2phosts.lib.rss import LatestHostsFeed from pyi2phosts.latest.views import LatestHostsListsView diff --git a/pyi2phosts/postkey/urls.py b/pyi2phosts/postkey/urls.py index dbddace..d55cc9f 100644 --- a/pyi2phosts/postkey/urls.py +++ b/pyi2phosts/postkey/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls.defaults import * +from django.conf.urls import * urlpatterns = patterns('pyi2phosts.postkey.views', (r'^$', 'addkey'), diff --git a/pyi2phosts/search/urls.py b/pyi2phosts/search/urls.py index e9fb950..8196277 100644 --- a/pyi2phosts/search/urls.py +++ b/pyi2phosts/search/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls.defaults import * +from django.conf.urls import * from pyi2phosts.search.views import SearchedHostsListsView urlpatterns = patterns('', diff --git a/pyi2phosts/urls.py b/pyi2phosts/urls.py index ff7aeaa..f25054c 100644 --- a/pyi2phosts/urls.py +++ b/pyi2phosts/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls.defaults import * +from django.conf.urls import * # Uncomment the next two lines to enable the admin: from django.contrib import admin