mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-19 00:09:21 +11:00
Fixed urlpattern warning.
This commit is contained in:
parent
ba0cbcd7c5
commit
14d014bcba
3 changed files with 5 additions and 6 deletions
|
@ -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'
|
||||
|
|
|
@ -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'),
|
||||
|
|
|
@ -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'),
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue