django-rest-framework/examples/urls.py

22 lines
867 B
Python
Raw Normal View History

2012-02-25 22:45:17 +04:00
from django.conf.urls.defaults import patterns, include, url
from sandbox.views import Sandbox
2012-02-07 15:22:47 +04:00
try:
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
except ImportError: # Django <= 1.2
from staticfiles.urls import staticfiles_urlpatterns
2011-05-04 12:21:17 +04:00
urlpatterns = patterns('',
(r'^$', Sandbox.as_view()),
(r'^resource-example/', include('resourceexample.urls')),
(r'^model-resource-example/', include('modelresourceexample.urls')),
(r'^mixin/', include('mixin.urls')),
(r'^object-store/', include('objectstore.urls')),
(r'^pygments/', include('pygments_api.urls')),
(r'^blog-post/', include('blogpost.urls')),
(r'^permissions-example/', include('permissionsexample.urls')),
2012-02-25 22:45:17 +04:00
url(r'^restframework/', include('djangorestframework.urls', namespace='djangorestframework')),
)
2011-03-09 11:50:56 +03:00
urlpatterns += staticfiles_urlpatterns()