Example #1
0
# coding: utf-8
from django.conf.urls import url

from project.views import (
    ProjectList,
    ProjectSave,
    ProjectDetail,
    ProjectDeletion
)

urlpatterns = [
    url(r'^$', ProjectList.as_view(), name='list'),
    url(r'^(\w+)/save/$', ProjectSave.as_view(), name='save'),
    url(r'^(\d+)/$', ProjectDetail.as_view(), name='detail'),
    url(r'^(?P<pk>\d+)/delete/$', ProjectDeletion.as_view(), name='deletion'),
]
Example #2
0
    def _callFUT(self, *args, **kwargs):
        from project.views import ProjectSave

        return ProjectSave.as_view()(*args, **kwargs)