本文整理汇总了Python中daguerre.views.AjaxUpdateAreaView.as_view方法的典型用法代码示例。如果您正苦于以下问题:Python AjaxUpdateAreaView.as_view方法的具体用法?Python AjaxUpdateAreaView.as_view怎么用?Python AjaxUpdateAreaView.as_view使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类daguerre.views.AjaxUpdateAreaView
的用法示例。
在下文中一共展示了AjaxUpdateAreaView.as_view方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: import
# 需要导入模块: from daguerre.views import AjaxUpdateAreaView [as 别名]
# 或者: from daguerre.views.AjaxUpdateAreaView import as_view [as 别名]
from django.conf.urls.defaults import patterns, url
from daguerre.views import (AdjustedImageRedirectView, AjaxAdjustmentInfoView,
AjaxUpdateAreaView)
urlpatterns = patterns(
'',
url(r'^adjust/(?P<storage_path>.+)$',
AdjustedImageRedirectView.as_view(),
name="daguerre_adjusted_image_redirect"),
url(r'^info/(?P<storage_path>.+)$',
AjaxAdjustmentInfoView.as_view(),
name="daguerre_ajax_adjustment_info"),
url(r'^area/(?P<storage_path>.+?)(?:/(?P<pk>\d+))?$',
AjaxUpdateAreaView.as_view(),
name="daguerre_ajax_update_area"),
)
示例2: patterns
# 需要导入模块: from daguerre.views import AjaxUpdateAreaView [as 别名]
# 或者: from daguerre.views.AjaxUpdateAreaView import as_view [as 别名]
from django.conf.urls.defaults import patterns, url
from daguerre.views import AdjustedImageRedirectView, AjaxAdjustmentInfoView, AjaxUpdateAreaView
urlpatterns = patterns('',
url(r'^adjust/(?P<storage_path>.+)$', AdjustedImageRedirectView.as_view(), name="daguerre_adjusted_image_redirect"),
url(r'^info/(?P<storage_path>.+)$', AjaxAdjustmentInfoView.as_view(), name="daguerre_ajax_adjustment_info"),
url(r'^area/(?P<storage_path>.+?)(?:/(?P<pk>\d+))?$', AjaxUpdateAreaView.as_view(), name="daguerre_ajax_update_area"),
)