from codecamp.ember.views import SessionList, SessionDetail, SpeakerList, SpeakerDetail, RatingList, RatingDetail, TagList, TagDetail, RatingBySessionList
from django.views.decorators.csrf import csrf_exempt
from django.conf.urls.defaults import patterns, url, include

urlpatterns = patterns('',
    url(r'^/ratings/$', csrf_exempt(RatingList.as_view())),
    url(r'^/tags/(?P<pk>\d+)/$', csrf_exempt(TagDetail.as_view())),
    url(r'^/ratings/(?P<pk>\d+)/$', csrf_exempt(RatingDetail.as_view())),
    url(r'^/speakers/(?P<pk>\d+)/$', csrf_exempt(SpeakerDetail.as_view())),
    url(r'^/sessions/(?P<session_pk>\d+)/tags/$', csrf_exempt(TagList.as_view())),
    url(r'^/sessions/(?P<session_pk>\d+)/ratings/$', csrf_exempt(RatingBySessionList.as_view())),
    url(r'^/sessions/(?P<session_pk>\d+)/speakers/$', csrf_exempt(SpeakerList.as_view())),
    url(r'^/sessions/(?P<pk>\d+)/$', csrf_exempt(SessionDetail.as_view())),
    url(r'^/sessions/$', csrf_exempt(SessionList.as_view())),
)
Beispiel #2
0
from codecamp.ember.views import SessionList, SessionDetail, SpeakerList, SpeakerDetail, RatingList, RatingDetail, TagList, TagDetail
from django.views.decorators.csrf import csrf_exempt
from django.conf.urls.defaults import patterns, url, include

urlpatterns = patterns('',
    url(r'^/tags/(?P<pk>\d+)/$', csrf_exempt(TagDetail.as_view())),
    url(r'^/ratings/(?P<pk>\d+)/$', csrf_exempt(RatingDetail.as_view())),
    url(r'^/speakers/(?P<pk>\d+)/$', csrf_exempt(SpeakerDetail.as_view())),
    url(r'^/sessions/(?P<session_pk>\d+)/tags/$', csrf_exempt(TagList.as_view())),
    url(r'^/sessions/(?P<session_pk>\d+)/ratings/$', csrf_exempt(RatingList.as_view())),
    url(r'^/sessions/(?P<session_pk>\d+)/speakers/$', csrf_exempt(SpeakerList.as_view())),
    url(r'^/sessions/(?P<pk>\d+)/$', csrf_exempt(SessionDetail.as_view())),
    url(r'^/sessions/$', csrf_exempt(SessionList.as_view())),
)
Beispiel #3
0
from codecamp.ember.views import SessionList, SpeakerList, SpeakerDetail, RatingList, RatingDetail, TagList, TagDetail
from django.views.decorators.csrf import csrf_exempt
from django.conf.urls.defaults import patterns, url, include

urlpatterns = patterns('',
    url(r'^/tags/(?P<pk>\d+)/$', csrf_exempt(TagDetail.as_view())),
    url(r'^/ratings/(?P<pk>\d+)/$', csrf_exempt(RatingDetail.as_view())),
    url(r'^/speakers/(?P<pk>\d+)/$', csrf_exempt(SpeakerDetail.as_view())),
    url(r'^/sessions/(?P<session_pk>\d+)/tags/$', csrf_exempt(TagList.as_view())),
    url(r'^/sessions/(?P<session_pk>\d+)/ratings/$', csrf_exempt(RatingList.as_view())),
    url(r'^/sessions/(?P<session_pk>\d+)/speakers/$', csrf_exempt(SpeakerList.as_view())),
    url(r'^/sessions$', csrf_exempt(SessionList.as_view())),
)
Beispiel #4
0
from codecamp.ember.views import RatingBySessionList, SessionList, RatingList, TagList, SpeakerList
from django.conf.urls.defaults import patterns, url, include

urlpatterns = patterns('',
    url(r'^/ratings/$', RatingList.as_view()),
    url(r'^/sessions/$', SessionList.as_view()),
    url(r'^/sessions/(?P<session_pk>\d+)/tags/$', TagList.as_view()),
    url(r'^/sessions/(?P<session_pk>\d+)/ratings/$', RatingBySessionList.as_view()),
    url(r'^/sessions/(?P<session_pk>\d+)/speakers/$', SpeakerList.as_view()),
)
Beispiel #5
0
from codecamp.ember.views import RatingBySessionList, SessionList, RatingList, TagList, SpeakerList
from django.conf.urls.defaults import patterns, url, include

urlpatterns = patterns(
    '',
    url(r'^/ratings/$', RatingList.as_view()),
    url(r'^/sessions/$', SessionList.as_view()),
    url(r'^/sessions/(?P<session_pk>\d+)/tags/$', TagList.as_view()),
    url(r'^/sessions/(?P<session_pk>\d+)/ratings/$',
        RatingBySessionList.as_view()),
    url(r'^/sessions/(?P<session_pk>\d+)/speakers/$', SpeakerList.as_view()),
)
from codecamp.ember.views import SessionList, SessionDetail, SpeakerList, SpeakerDetail, RatingList, RatingDetail, TagList, TagDetail, RatingBySessionList
from django.views.decorators.csrf import csrf_exempt
from django.conf.urls.defaults import patterns, url, include

urlpatterns = patterns(
    '',
    url(r'^/ratings/$', csrf_exempt(RatingList.as_view())),
    url(r'^/tags/(?P<pk>\d+)/$', csrf_exempt(TagDetail.as_view())),
    url(r'^/ratings/(?P<pk>\d+)/$', csrf_exempt(RatingDetail.as_view())),
    url(r'^/speakers/(?P<pk>\d+)/$', csrf_exempt(SpeakerDetail.as_view())),
    url(r'^/sessions/(?P<session_pk>\d+)/tags/$',
        csrf_exempt(TagList.as_view())),
    url(r'^/sessions/(?P<session_pk>\d+)/ratings/$',
        csrf_exempt(RatingBySessionList.as_view())),
    url(r'^/sessions/(?P<session_pk>\d+)/speakers/$',
        csrf_exempt(SpeakerList.as_view())),
    url(r'^/sessions/(?P<pk>\d+)/$', csrf_exempt(SessionDetail.as_view())),
    url(r'^/sessions/$', csrf_exempt(SessionList.as_view())),
)