From 14d014bcbaa2d4a9278a615b832646f1ed04cbdb Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Sun, 24 Nov 2013 19:46:47 +0100 Subject: [PATCH] Fixed urlpattern warning. --- dpaste/urls/__init__.py | 5 ++--- dpaste/urls/dpaste.py | 2 +- dpaste/urls/dpaste_api.py | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/dpaste/urls/__init__.py b/dpaste/urls/__init__.py index fe696fb..1f0b4ae 100644 --- a/dpaste/urls/__init__.py +++ b/dpaste/urls/__init__.py @@ -1,5 +1,4 @@ -from django.conf.urls.defaults import url, patterns, include -from django.views.generic import TemplateView +from django.conf.urls import url, patterns, include urlpatterns = patterns( '', @@ -10,4 +9,4 @@ urlpatterns = patterns( # Custom error handlers which load `dpaste/.html` instead of `.html` handler404 = 'dpaste.views.page_not_found' -handler500 = 'dpaste.views.server_error' \ No newline at end of file +handler500 = 'dpaste.views.server_error' diff --git a/dpaste/urls/dpaste.py b/dpaste/urls/dpaste.py index 2d1aa18..df222c9 100644 --- a/dpaste/urls/dpaste.py +++ b/dpaste/urls/dpaste.py @@ -1,4 +1,4 @@ -from django.conf.urls.defaults import url, patterns +from django.conf.urls import url, patterns urlpatterns = patterns('dpaste.views', url(r'^$', 'snippet_new', name='snippet_new'), diff --git a/dpaste/urls/dpaste_api.py b/dpaste/urls/dpaste_api.py index 67447b2..beaadc6 100644 --- a/dpaste/urls/dpaste_api.py +++ b/dpaste/urls/dpaste_api.py @@ -1,6 +1,6 @@ -from django.conf.urls.defaults import url, patterns +from django.conf.urls import url, patterns from ..views import snippet_api urlpatterns = patterns('', url(r'^api/$', snippet_api, name='dpaste_api_create_snippet'), -) \ No newline at end of file +)