Commit 57301416 by Paul Kilgo

use more compatible url import

defaults module is deprecated in later Django's
parent b9509927
......@@ -15,7 +15,10 @@
# You should have received a copy of the GNU Lesser General Public License
# along with django-sshkey. If not, see <http://www.gnu.org/licenses/>.
from django.conf.urls.defaults import patterns, url
try:
from django.conf.urls.defaults import patterns, url
except ImportError:
from django.conf.urls import patterns, url
urlpatterns = patterns('django_sshkey.views',
url(r'^lookup$', 'lookup'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment