from django.conf.urls import patterns, url

from .views import ClipboardFileAPIView, ClipboardImageAPIView

urlpatterns = patterns(
    '',
    url(r'^images/(?P<pk>\d+)$', ClipboardImageAPIView.as_view(), name="clipboard_images"),
    url(r'^images/', ClipboardImageAPIView.as_view(), name="clipboard_images"),
    url(r'^(?P<pk>\d+)$', ClipboardFileAPIView.as_view(), name="clipboard"),
    url(r'^', ClipboardFileAPIView.as_view(), name="clipboard"),
)

from django.conf.urls import url

from .views import ClipboardFileAPIView, ClipboardImageAPIView

urlpatterns = [
    url(r'^images/(?P<pk>\d+)$', ClipboardImageAPIView.as_view(), name="clipboard_images"),
    url(r'^images/', ClipboardImageAPIView.as_view(), name="clipboard_images"),
    url(r'^(?P<pk>\d+)$', ClipboardFileAPIView.as_view(), name="clipboard"),
    url(r'^', ClipboardFileAPIView.as_view(), name="clipboard"),
]

Define urlpatterns as a pure list (don't call patterns)
Define urlpatterns as a pure list (don't call patterns)