Fixed urlpattern warning.

This commit is contained in:
Martin Mahner 2013-11-24 19:46:47 +01:00
parent ba0cbcd7c5
commit 14d014bcba
3 changed files with 5 additions and 6 deletions

View file

@ -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/<code>.html` instead of `<code>.html`
handler404 = 'dpaste.views.page_not_found'
handler500 = 'dpaste.views.server_error'
handler500 = 'dpaste.views.server_error'

View file

@ -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'),

View file

@ -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'),
)
)