mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +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.conf.urls import url, patterns, include
|
||||||
from django.views.generic import TemplateView
|
|
||||||
|
|
||||||
urlpatterns = patterns(
|
urlpatterns = patterns(
|
||||||
'',
|
'',
|
||||||
|
@ -10,4 +9,4 @@ urlpatterns = patterns(
|
||||||
|
|
||||||
# Custom error handlers which load `dpaste/<code>.html` instead of `<code>.html`
|
# Custom error handlers which load `dpaste/<code>.html` instead of `<code>.html`
|
||||||
handler404 = 'dpaste.views.page_not_found'
|
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',
|
urlpatterns = patterns('dpaste.views',
|
||||||
url(r'^$', 'snippet_new', name='snippet_new'),
|
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
|
from ..views import snippet_api
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
url(r'^api/$', snippet_api, name='dpaste_api_create_snippet'),
|
url(r'^api/$', snippet_api, name='dpaste_api_create_snippet'),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue