from django.conf.urls import patterns, url from account.decorators import login_required from .views import ( VeiculoList, VeiculoCreate, VeiculoDetail, VeiculoUpdate, VeiculoDelete, ) urlpatterns = patterns('', # Veiculo URLs url(r'^$', view=login_required(VeiculoList.as_view()), name="veiculo_list"), url(r'^add/$', view=login_required(VeiculoCreate.as_view()), name="veiculo_add"), url(r'^(?P<veiculo_pk>[\d]+)/$', view=login_required(VeiculoDetail.as_view()), name="veiculo_detail"), url(r'^(?P<veiculo_pk>[\d]+)/edit/$', view=login_required(VeiculoUpdate.as_view()), name="veiculo_edit"), url(r'^(?P<veiculo_pk>[\d]+)/delete/$', view=login_required(VeiculoDelete.as_view()), name="veiculo_delete"), # # Veiculo user URLs # url(r'^(?P<veiculo_pk>[\d]+)/people/$',
CancelView, ChangeCardView, ChangePlanView, HistoryView, SubscribeView, Webhook, AjaxSubscribe, AjaxChangeCard, AjaxChangePlan, AjaxCancelSubscription ) urlpatterns = [ url(r"^webhook/$", Webhook.as_view(), name="pinax_stripe_webhook"), url(r"^a/subscribe/$", login_required(AjaxSubscribe.as_view()), name="pinax_stripe_ajax_subscribe"), url(r"^a/change/card/$", login_required(AjaxChangeCard.as_view()), name="pinax_stripe_ajax_change_card"), url(r"^a/change/plan/$", login_required(AjaxChangePlan.as_view()), name="pinax_stripe_ajax_change_plan"), url(r"^a/cancel/$", login_required(AjaxCancelSubscription.as_view()), name="pinax_stripe_ajax_cancel"), url( r"^subscribe/$", login_required(SubscribeView.as_view()), name="pinax_stripe_subscribe" ), url( r"^change/card/$", login_required(ChangeCardView.as_view()), name="pinax_stripe_change_card" ), url( r"^change/plan/$",
from time_sections.views.section_craftsmen_view import SectionCraftsmenView from time_sections.views.sections_list import SectionListView from ublog.views import BlogIndexView, SectionIndexView, StaffPostDetailView, NewPostView, \ SlugUniquePostDetailView, SectionEnterView, CreateSectionView, GetNextSectionRecurrencesView js_info_dict = { 'packages': ('recurrence', ), } urlpatterns = [ url(r"^$", BlogIndexView.as_view(), name="home"), url(r"^sections/$", SectionListView.as_view(), name="sections_list"), url(r"^sections/(?P<section>[-\w]+)/$", SectionIndexView.as_view(), name="blog_section"), url(r"^sections/(?P<section>[-\w]+)/get_next_recurrences$", GetNextSectionRecurrencesView.as_view(), name="get_next_recurrences"), url(r"^sections/new$", CreateSectionView.as_view(), name="new_section"), url(r"^sections/(?P<section>[-\w]+)/enter$", login_required(SectionEnterView.as_view()), name="section_enter"), url(r"^sections/(?P<section>[-\w]+)/craftsmen/$", SectionCraftsmenView.as_view(), name="section_craftsmen_list"), url(r"^post/(?P<post_pk>\d+)/$", StaffPostDetailView.as_view(), name="blog_post_pk"), url(r"^post/(?P<post_slug>[-\w]+)/$", SlugUniquePostDetailView.as_view(), name="blog_post_slug"), url(r"^post/new$", login_required(NewPostView.as_view()), name="new_blog_post"), url(r"^sections/(?P<section>[-\w]+)/post/new$", login_required(NewPostView.as_view()), name="new_section_post"), url(r"^account/", include("account.urls")), url(r'^admin/', include(admin.site.urls)), # used for markdownx, markdown editor url(r'^markdownx/', include('markdownx.urls')), url(r"^likes/", include("pinax.likes.urls", namespace="pinax_likes")), url(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), ]