mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-14 05:36:50 +03:00
22 lines
867 B
Python
22 lines
867 B
Python
from django.conf.urls.defaults import patterns, include, url
|
|
from sandbox.views import Sandbox
|
|
try:
|
|
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
|
except ImportError: # Django <= 1.2
|
|
from staticfiles.urls import staticfiles_urlpatterns
|
|
|
|
|
|
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')),
|
|
url(r'^restframework/', include('djangorestframework.urls', namespace='djangorestframework')),
|
|
)
|
|
|
|
urlpatterns += staticfiles_urlpatterns()
|