from api.views import DetailAndUpdate, ListCreateView
from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns


urlpatterns = [url(r"^movies/$", ListCreateView.as_view()), url(r"^movies/(?P<pk>[0-9]+)/", DetailAndUpdate.as_view())]

urlpatterns = format_suffix_patterns(urlpatterns)
from api.views import DetailAndUpdate, ListCreateView
from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns

urlpatterns = [
    url(r'^movies/$', ListCreateView.as_view()),
    url(r'^movies/(?P<pk>[0-9]+)/', DetailAndUpdate.as_view())
]

urlpatterns = format_suffix_patterns(urlpatterns)
Beispiel #3
0
from django.conf.urls import url
from django.views.decorators.csrf import csrf_exempt
from api.views import DetailAndUpdate


urlpatterns = [
    url(r'^movies/$', 'api.views.list_create_view'),
    url(r'^movies/(?P<movie_id>[0-9]+)/',
        csrf_exempt(DetailAndUpdate.as_view()))
]
from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from api.views import ListCreateView, DetailAndUpdate

urlpatterns = [
    url(r'^movies/$', ListCreateView.as_view()),
    url(r'^movies/(?P<pk>[0-9]+)/',
        DetailAndUpdate.as_view())
]


urlpatterns = format_suffix_patterns(urlpatterns)
Beispiel #5
0
from django.conf.urls import url
from django.views.decorators.csrf import csrf_exempt
from api.views import DetailAndUpdate


urlpatterns = [
    url(r"^movies/$", "api.views.list_create_view"),
    url(r"^movies/(?P<movie_id>[0-9]+)/", csrf_exempt(DetailAndUpdate.as_view())),
]