URL Order

This commit is contained in:
Martin Mahner 2011-06-08 17:13:52 +02:00
parent 7523610710
commit 5d1cbae236

View file

@ -8,14 +8,10 @@ admin.autodiscover()
snippet_resource = Resource(handler=SnippetHandler)
urlpatterns = patterns('',
(r'^', include('pastebin.apps.dpaste.urls')),
# Static
url(r'^about/$', 'django.views.generic.simple.direct_to_template', {'template': 'about.html'}, name='about'),
url(r'^admin/', include(admin.site.urls)),
# API
url(r'^api/(?P<secret_id>[^/]+)/$', snippet_resource),
url(r'^api/$', snippet_resource),
url(r'^api/$', snippet_resource),
(r'^', include('pastebin.apps.dpaste.urls')),
)