Browse Source

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 *
pull/1/head
Hidden Z 11 years ago
parent
commit
154eb7f7c2
  1. 2
      pyi2phosts/jump/urls.py
  2. 2
      pyi2phosts/latest/urls.py
  3. 2
      pyi2phosts/postkey/urls.py
  4. 2
      pyi2phosts/search/urls.py
  5. 2
      pyi2phosts/urls.py

2
pyi2phosts/jump/urls.py

@ -1,4 +1,4 @@
from django.conf.urls.defaults import * from django.conf.urls import *
urlpatterns = patterns('pyi2phosts.jump.views', urlpatterns = patterns('pyi2phosts.jump.views',
(r'^([^$/]+)', 'jumper'), (r'^([^$/]+)', 'jumper'),

2
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.lib.rss import LatestHostsFeed
from pyi2phosts.latest.views import LatestHostsListsView from pyi2phosts.latest.views import LatestHostsListsView

2
pyi2phosts/postkey/urls.py

@ -1,4 +1,4 @@
from django.conf.urls.defaults import * from django.conf.urls import *
urlpatterns = patterns('pyi2phosts.postkey.views', urlpatterns = patterns('pyi2phosts.postkey.views',
(r'^$', 'addkey'), (r'^$', 'addkey'),

2
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 from pyi2phosts.search.views import SearchedHostsListsView
urlpatterns = patterns('', urlpatterns = patterns('',

2
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: # Uncomment the next two lines to enable the admin:
from django.contrib import admin from django.contrib import admin

Loading…
Cancel
Save