本文整理汇总了Python中surlex.dj.surl函数的典型用法代码示例。如果您正苦于以下问题:Python surl函数的具体用法?Python surl怎么用?Python surl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了surl函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: prepend_urls
def prepend_urls(self):
return [
surl(r"^<resource_name={name}>/login{slash}$".format(**self._meta.urlargs), self.wrap_view('dispatch_login'), name='api_user_login'),
url(r"^(?P<resource_name>%s)/(?P<pk>\w[\w/-]*)/playlists%s$" % (self._meta.resource_name, trailing_slash()), self.wrap_view('get_playlist'), name="api_get_playlist"),
url(r"^(?P<resource_name>%s)/(?P<pk>\w[\w/-]*)/playlists/(?P<pk2>\w[\w/-]*)%s$" % (self._meta.resource_name, trailing_slash()), self.wrap_view('get_songs'), name="api_get_songs"),
url(r"^(?P<resource_name>%s)/(?P<pk>\w[\w/-]*)/songs/(?P<pk3>\w[\w/-]*)%s$" % (self._meta.resource_name, trailing_slash()), self.wrap_view('get_song'), name="api_get_song"),
]
开发者ID:jaspreet1990,项目名称:musicstore,代码行数:7,代码来源:api.py
示例2: patterns
from apps.fund.views import RecurringOrderList, RecurringOrderDetail, RecurringDonationList, RecurringDonationDetail, \
ProjectDonationList, ProjectSupporterList
from django.conf.urls import patterns, include, url
from surlex.dj import surl
from ..views import OrderList, OrderDetail, OrderCurrentDetail, PaymentProfileCurrent, PaymentCurrent, \
RecurringDirectDebitPaymentList, RecurringDirectDebitPaymentDetail, OrderCurrentDonationDetail, \
OrderCurrentDonationList, NestedDonationDetail, NestedDonationList, DonationList, DonationDetail, TickerList
urlpatterns = patterns('',
# Orders
url(r'^orders/$', OrderList.as_view(), name='fund-order-list'),
surl(r'^orders/<pk:#>$', OrderDetail.as_view(), name='fund-order-detail'),
surl(r'^orders/<order_pk:#>/donations/$', NestedDonationList.as_view(), name='fund-order-donation-list'),
surl(r'^orders/<order_pk:#>/donations/<pk:#>$', NestedDonationDetail.as_view(), name='fund-order-donation-detail'),
# Donations
surl(r'^project-donations/$', ProjectDonationList.as_view(), name='project-donation-list'),
surl(r'^project-supporters/$', ProjectSupporterList.as_view(), name='project-supporter-list'),
# Donations
surl(r'^donations/$', DonationList.as_view(), name='fund-donation-list'),
surl(r'^donations/<pk:#>$', DonationDetail.as_view(), name='fund-donation-detail'),
# Latest Donations
surl(r'^latest-donations/$', TickerList.as_view(), name='fund-ticker-list'),
# Current Order (i.e. the server-side shopping cart).
url(r'^orders/current$', OrderCurrentDetail.as_view(), {'alias': 'current'}, name='fund-order-current-detail'),
url(r'^orders/current/donations/$', OrderCurrentDonationList.as_view(), {'alias': 'current'}, name='fund-order-current-donation-list'),
surl(r'^orders/current/donations/<pk:#>$', OrderCurrentDonationDetail.as_view(), {'alias': 'current'}, name='fund-order-current-donation-detail'),
开发者ID:gannetson,项目名称:onepercentclub-site,代码行数:31,代码来源:api.py
示例3: patterns
from django.conf.urls.defaults import patterns, include, url
from django.contrib.auth.decorators import login_required
from surlex.dj import surl
from views import EventListView, EventDetailView, ReportListView, ReportDetailView
from views import event_register
urlpatterns = patterns('',
url(r'^$', login_required(EventListView.as_view()), name='event_list'),
surl(r'^event/<pk:s>/$', login_required(EventDetailView.as_view()), name='event_detail'),
surl(r'^event/<pk:s>/register', login_required(event_register), name='event_register'),
surl(r'^report/$', ReportListView.as_view(), name='report_list'),
surl(r'^report/<pk:s>/$', ReportDetailView.as_view(), name='report_detail'),
)
开发者ID:blackhand,项目名称:event-manager,代码行数:16,代码来源:urls.py
示例4: import
from surlex.dj import surl
from .views import (
AccountingOverviewView, AccountingDashboardView, MultiTenantAccountingDashboardView,
MultiTenantAccountingOverviewView)
urlpatterns = [
surl(r'^overview/$', AccountingOverviewView.as_view(), name='admin-accounting-overview'),
surl(r'^dashboard/$', AccountingDashboardView.as_view(), name='admin-accounting-dashboard'),
surl(r'^multiadmin/$', MultiTenantAccountingDashboardView.as_view(), name='multiadmin-accounting-dashboard'),
surl(r'^multiadmin/overview/$', MultiTenantAccountingOverviewView.as_view(), name='multiadmin-accounting-overview'),
]
开发者ID:jfterpstra,项目名称:bluebottle,代码行数:12,代码来源:urls.py
示例5: import
from django.contrib import admin
from .views import (
HomeView,
ArtworkDetailView, ArtworkListView,
CollectionListView, CollectionDetailView,
CategoryListView, CategoryDetailView
)
urlpatterns = patterns('',
# Home view
surl(r'^$', HomeView.as_view(),
name='portfolio_home'
),
# Collection views
surl(r'^collections/$', CollectionListView.as_view(),
name='collection_list'
),
surl(r'^collections/<slug:s>/', CollectionDetailView.as_view(),
name='collection_detail'
),
# Artwork views
surl(r'^works/$', ArtworkListView.as_view(),
name='artwork_list'
),
surl(r'^works/<pk:#>/$', ArtworkDetailView.as_view(),
开发者ID:yahorshumski,项目名称:photographer,代码行数:31,代码来源:urls.py
示例6: patterns
from django.conf.urls import patterns
from surlex.dj import surl
from .views import ProjectDetailView, ProjectIframeView
urlpatterns = patterns('',
surl(r'^<slug:s>$', ProjectDetailView.as_view(), name='project-detail'),
surl(r'^<slug:s>/iframe/$', ProjectIframeView.as_view(), name='project-iframe'),
#surl('/macromicro/xml', MacroMicroListView.as_view(), name='macromicro-project-list')
)
开发者ID:MG84,项目名称:onepercentclub-site,代码行数:9,代码来源:urls.py
示例7: patterns
from django.conf.urls import patterns, url
from surlex.dj import surl
from .views import ReactionList, ReactionDetail, WallPostList
urlpatterns = patterns('',
url(r'^$', WallPostList.as_view(), name='wallpost-list'),
url(r'^reactions/$', ReactionList.as_view(), name='wallpost-reaction-list'),
surl(r'^reactions/<pk:#>$', ReactionDetail.as_view(), name='wallpost-reaction-detail'),
)
开发者ID:tlray,项目名称:bluebottle,代码行数:9,代码来源:urlsapi.py
示例8: patterns
from django.conf.urls import patterns, url, include
from surlex.dj import surl
from ..views import PartnerDetail
urlpatterns = patterns('',
surl(r'^<slug:s>$', PartnerDetail.as_view(), name='partner-detail'),
)
开发者ID:gannetson,项目名称:onepercentclub-site,代码行数:8,代码来源:api.py
示例9: import
from django.conf.urls import patterns
from surlex.dj import surl
from .views import (
NewsletterListView, NewsletterDetailView,
MessageArchiveIndexView, MessageArchiveDetailView,
SubscribeRequestView, UnsubscribeRequestView, UpdateRequestView,
ActionTemplateView, UpdateSubscriptionViev,
)
urlpatterns = patterns(
'',
surl(r'^receipt/email/<receipt_slug:s>.png', 'newsletter.views.receipt_email',name='email_view_tracker' ),
surl(r'^receipt/archive/<receipt_slug:s>.png', 'newsletter.views.receipt_archive',name='archive_view_tracker' ),
surl(r'^linktrack/<link_tracker_id:s>', 'newsletter.views.link_tracker', name='link_tracker' ),
# Archive views
surl(
'^archive/<newsletter_slug:s>/<slug:s>/<receipt_slug:s>/$',
MessageArchiveDetailView.as_view(), name='newsletter_archive_detail_receipt'
),
surl(
'^archive/<newsletter_slug:s>/<slug:s>/$',
MessageArchiveDetailView.as_view(), name='newsletter_archive_detail'
),
surl(
'^archive/<newsletter_slug:s>/$',
MessageArchiveIndexView.as_view(), name='newsletter_archive'
),
开发者ID:ninapavlich,项目名称:django-newsletter,代码行数:31,代码来源:urls.py
示例10: patterns
from django.conf.urls import patterns
from surlex.dj import surl
from .views import DocumentDownloadView
urlpatterns = patterns('',
surl(r'^<content_type:#>/<pk:#>$', DocumentDownloadView.as_view(), name='document-download-detail'),
)
开发者ID:MG84,项目名称:bluebottle,代码行数:7,代码来源:urls.py
示例11: patterns
from .views import ManageOrganizationList, ManageOrganizationDetail, ManageOrganizationDocumentList, ManageOrganizationDocumentDetail
from django.conf.urls import patterns, url, include
from surlex.dj import surl
from .views import OrganizationDetail, OrganizationList
urlpatterns = patterns('',
url(r'^$', OrganizationList.as_view(), name='organization-list'),
surl(r'^<pk:#>$', OrganizationDetail.as_view(), name='organization-detail'),
surl(r'^manage/$', ManageOrganizationList.as_view(), name='manage-organization-list'),
surl(r'^manage/<pk:#>$', ManageOrganizationDetail.as_view(), name='manage-organization-detail'),
url(r'^documents/manage/$', ManageOrganizationDocumentList.as_view(), name='manage-organization-document-list'),
surl(r'^documents/manage/<pk:#>$', ManageOrganizationDocumentDetail.as_view(), name='manage-organization-document-detail'),
)
开发者ID:MG84,项目名称:onepercentclub-site,代码行数:15,代码来源:urlsapi.py
示例12: patterns
from django.conf.urls import patterns, url
from surlex.dj import surl
from .views import PageList, PageDetail
urlpatterns = patterns('',
url(r'^/<language:s>/pages/$', PageList.as_view(), name='page-list'),
surl(r'^/<language:s>/pages/<slug:s>$', PageDetail.as_view(), name='page-detail'),
)
开发者ID:prashantpalikhe,项目名称:bluebottle,代码行数:8,代码来源:urlsapi.py
示例13: patterns
from apps.pages.views import ContactRequestCreate
from django.conf.urls import patterns, url
from surlex.dj import surl
from .views import PageList, PageDetail
urlpatterns = patterns(
"",
surl(r"^<language:s>/pages/$", PageList.as_view(), name="page-list"),
surl(r"^<language:s>/pages/<slug:s>$", PageDetail.as_view(), name="page-detail"),
url(r"^contact/$", ContactRequestCreate.as_view(), name="contact-request-create"),
)
开发者ID:rollick,项目名称:onepercentclub-site,代码行数:11,代码来源:urlsapi.py
示例14: patterns
from surlex.dj import surl
from django.conf.urls.defaults import *
from basic_webshop.views import *
urlpatterns = patterns('',
# Product search
surl(r'^productsearch/',
ProductSearch.as_view(), name='product_search'),
# Catalogue
surl(r'^categories/<category_slug:s>/<aspect=new|picks|sale|all>/$',
CategoryAspectDetail.as_view(), name='category_aspect_detail'),
surl(r'^categories/<category_slug:s>/<subcategory_slug:s>/$',
SubCategoryDetail.as_view(), name='subcategory_detail'),
surl(r'^categories/<category_slug:s>/<subcategory_slug:s>/<subsubcategory_slug:s>/$',
SubSubCategoryDetail.as_view(), name='subsubcategory_detail'),
surl(r'^categories/<category_slug:s>/$',
CategoryDetail.as_view(), name='category_detail'),
surl(r'^products/<slug:s>/$',
ProductDetail.as_view(), name='product_detail'),
# Brands
surl(r'^brands/$',
BrandList.as_view(), name='brand_list'),
开发者ID:dokterbob,项目名称:basic-webshop,代码行数:31,代码来源:urls.py
示例15: patterns
from django.conf.urls import patterns
from surlex.dj import surl
from .views import UserProfileList, UserProfileDetail
urlpatterns = patterns('',
surl(r'^$', UserProfileList.as_view(), name='userprofile_list'),
surl(r'^<slug:s>/$', UserProfileDetail.as_view(), name='userprofile_detail'),
)
开发者ID:tlray,项目名称:bluebottle,代码行数:11,代码来源:urls.py
示例16: patterns
from django.conf.urls.defaults import patterns, include, url
from surlex.dj import surl
import issues
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
surl('^admin/', include(admin.site.urls)),
surl('^comments/', include('django.contrib.comments.urls')),
surl('^', include(issues.urls)),
)
开发者ID:Knight-Mozilla,项目名称:roundtable,代码行数:12,代码来源:urls.py
示例17: import
from apps.projects.views import ManageProjectAmbassadorList, ManageProjectAmbassadorDetail, ManageProjectBudgetLinetList, ManageProjectBudgetLineDetail, ProjectPreviewList, ProjectPreviewDetail
from django.conf.urls import patterns, url, include
from surlex.dj import surl
from .views import (ProjectDetail, ProjectList, ProjectSupporterList,
ManageProjectList, ManageProjectDetail, ManageProjectPitchDetail, ManageProjectPlanDetail,
ProjectPitchDetail, ProjectPlanDetail, ManageProjectCampaignDetail, ProjectThemeList,
ProjectThemeDetail, ProjectDonationList)
urlpatterns = patterns('',
url(r'^projects/$', ProjectList.as_view(), name='project-list'),
surl(r'^projects/<slug:s>$', ProjectDetail.as_view(), name='project-detail'),
url(r'^previews/$', ProjectPreviewList.as_view(), name='project-preview-list'),
surl(r'^previews/<slug:s>$', ProjectPreviewDetail.as_view(), name='project-preview-detail'),
# Not publically avaialable atm
# surl(r'^pitches/<pk:#>$', ProjectPitchDetail.as_view(), name='project-pitch-detail'),
surl(r'^plans/<pk:#>$', ProjectPlanDetail.as_view(), name='project-plan-detail'),
surl(r'^themes/$', ProjectThemeList.as_view(), name='project-theme-list'),
surl(r'^themes/<pk:#>$', ProjectThemeDetail.as_view(), name='project-theme-detail'),
# Project supporters
url(r'^supporters/$', ProjectSupporterList.as_view(), name='project-supporter-list'),
url(r'^donations/$', ProjectDonationList.as_view(), name='project-donation-list'),
# Manage stuff
url(r'^manage/$', ManageProjectList.as_view(), name='project-manage-list'),
surl(r'^manage/<slug:s>$', ManageProjectDetail.as_view(), name='project-manage-detail'),
surl(r'^pitches/manage/<pk:#>$', ManageProjectPitchDetail.as_view(), name='project-pitch-manage-detail'),
surl(r'^plans/manage/<pk:#>$', ManageProjectPlanDetail.as_view(), name='project-plan-manage-detail'),
开发者ID:MG84,项目名称:onepercentclub-site,代码行数:31,代码来源:urlsapi.py
示例18: patterns
from django.conf.urls import patterns
from surlex.dj import surl
from ..views import RegistrationDocumentDownloadView
urlpatterns = patterns('',
surl(r'^organizations/<pk:#>/$',
RegistrationDocumentDownloadView.as_view(),
name='organization-registration-download'),
)
开发者ID:repodevs,项目名称:bluebottle,代码行数:9,代码来源:documents.py
示例19: import
from apps.projects.views import ManageProjectAmbassadorList, ManageProjectAmbassadorDetail, ManageProjectBudgetLinetList, ManageProjectBudgetLineDetail, ProjectPreviewList, ProjectPreviewDetail
from django.conf.urls import patterns, url, include
from surlex.dj import surl
from .views import (ProjectDetail, ProjectList, ProjectWallPostList, ProjectWallPostDetail, ProjectMediaWallPostList,
ProjectMediaWallPostDetail, ProjectTextWallPostList, ProjectTextWallPostDetail,
ProjectMediaWallPostPhotoList, ProjectMediaWallPostPhotoDetail, ProjectDonationList,
ManageProjectList, ManageProjectDetail, ManageProjectPitchDetail, ManageProjectPlanDetail,
ProjectPitchDetail, ProjectPlanDetail, ManageProjectCampaignDetail)
urlpatterns = patterns('',
url(r'^projects/$', ProjectList.as_view(), name='project-list'),
surl(r'^projects/<slug:s>$', ProjectDetail.as_view(), name='project-detail'),
url(r'^previews/', ProjectPreviewList.as_view(), name='project-preview-list'),
surl(r'^previews/<slug:s>$', ProjectPreviewDetail.as_view(), name='project-preview-detail'),
# Not publically avaialable atm
# surl(r'^pitches/<pk:#>$', ProjectPitchDetail.as_view(), name='project-pitch-detail'),
surl(r'^plans/<pk:#>$', ProjectPlanDetail.as_view(), name='project-plan-detail'),
# Project WallPost Urls
url(r'^wallposts/$', ProjectWallPostList.as_view(), name='project-wallpost-list'),
surl(r'^wallposts/<pk:#>$', ProjectWallPostDetail.as_view(), name='project-wallpost-detail'),
url(r'^wallposts/media/$', ProjectMediaWallPostList.as_view(), name='project-mediawallpost-list'),
surl(r'^wallposts/media/<pk:#>$', ProjectMediaWallPostDetail.as_view(), name='project-mediawallpost-detail'),
url(r'^wallposts/text/$', ProjectTextWallPostList.as_view(), name='project-textwallpost-list'),
surl(r'wallposts/text/<pk:#>$', ProjectTextWallPostDetail.as_view(), name='project-textwallpost-detail'),
url(r'^wallposts/media/photos/$', ProjectMediaWallPostPhotoList.as_view(), name='project-mediawallpost-photo-list'),
surl(r'^wallposts/media/photos/<pk:#>$', ProjectMediaWallPostPhotoDetail.as_view(), name='project-mediawallpost-photo-list'),
开发者ID:prashantpalikhe,项目名称:bluebottle,代码行数:31,代码来源:urlsapi.py
示例20: url
urlpatterns = [
url(r'^api/v1/', include('langerak_gkv.api.urls', namespace='api')),
url(r'^admin/rosetta/', include('rosetta.urls')),
url(r'^admin/', include(admin.site.urls)),
url(r'^activities/', include('langerak_gkv.activities.urls', namespace='activities')),
url(r'^liturgies/', include('langerak_gkv.liturgies.urls', namespace='liturgies')),
url(r'^search/', include('langerak_gkv.search.urls', namespace='search')),
url(r'^societies/', include('langerak_gkv.societies.urls', namespace='societies')),
url(r'^users/', include('langerak_gkv.users.urls', namespace='users')),
url(r'^users/password/', include('password_reset.urls')),
url(r'^', include('langerak_gkv.homepage.urls')),
# newsletter + hijack some urls
surl(
'^newsletter/<newsletter_slug:s>/<action=subscribe|update|unsubscribe>/'
'activation-completed/$',
ActionRedirectView.as_view(),
name='newsletter_action_activated'),
surl(
'^newsletter/<newsletter_slug:s>/unsubscribe/confirm/$',
RedirectUnsubscribeRequestView.as_view(confirm=True),
name='newsletter_unsubscribe_confirm'
),
url(r'^newsletter/', include('newsletter.urls')),
url(r'^', include('cms.urls')),
] + staticfiles_urlpatterns()
# If settings.DEBUG is set to True, some URLs can be handled by Django.
开发者ID:sergei-maertens,项目名称:langerak-gkv,代码行数:31,代码来源:urls.py
注:本文中的surlex.dj.surl函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论