Пример #1
0
    ]

urlpatterns += [
    url(r'^__debug__/', include(debug_toolbar.urls)),
    url(r'^jsi18n/', JavaScriptCatalog.as_view(), name='javascript-catalog'),
    url_prefixed(r'register/$',
        PersonalRegistrationView.as_view(
            success_url=reverse_lazy('home')),
        name='registration_register'),
    url_prefixed(r'', include('saas.urls.users'),
        decorators=['django.contrib.auth.decorators.login_required']),
    url_prefixed(r'users/(?P<user>[\w.@+-]+)/',
        UserProfileView.as_view(), name='users_profile',
        decorators=['django.contrib.auth.decorators.login_required']),
    url_prefixed(r'users/',
        UserRedirectView.as_view(), name='accounts_profile',
        decorators=['django.contrib.auth.decorators.login_required']),
    url_prefixed(r'', include('django.contrib.auth.urls')),
    url_prefixed(r'saas/$',
        OrganizationListView.as_view(), name='saas_organization_list',
        decorators=['django.contrib.auth.decorators.login_required']),
    url_prefixed(r'$', TemplateView.as_view(template_name='index.html'),
        name='home'),
    url_prefixed(r'billing/cart/',
        login_required(
            OrganizationRedirectView.as_view(
                implicit_create_on_none=True,
                pattern_name='saas_organization_cart'),
            login_url=reverse_lazy('registration_register')),
        name='saas_cart'),
    # saas urls with provider key to implement marketplace.
Пример #2
0
        decorators=['saas.decorators.requires_provider_only']),
    url_prefixed(r'api/',
        include('saas.urls.api.provider.billing'),
        decorators=['saas.decorators.requires_direct']),
    url_prefixed(r'api/',
        include('saas.urls.api.provider.profile'),
        decorators=['saas.decorators.requires_direct']),
    url_prefixed(r'api/',
        include('saas.urls.api.provider.metrics'),
        decorators=['saas.decorators.requires_direct']),
    url_prefixed(r'api/', include('saas.urls.api.subscriber'),
        decorators=['saas.decorators.requires_provider']),
    url_prefixed(r'pricing/', CartPlanListView.as_view(),
        name='saas_cart_plan_list'),
    url_prefixed(r'users/$',
        UserRedirectView.as_view(), name='accounts_profile',
        decorators=['django.contrib.auth.decorators.login_required']),
    url_prefixed(r'', include('saas.urls.request'),
        decorators=['django.contrib.auth.decorators.login_required']),
    url_prefixed(r'', include('saas.urls.noauth')),
    url_prefixed(r'', include('saas.urls.provider'),
        decorators=['saas.decorators.requires_direct']),
    url_prefixed(r'', include('saas.urls.broker'),
        decorators=['saas.decorators.requires_direct']),
    url_prefixed(r'', include('saas.urls.subscriber'),
        decorators=['saas.decorators.requires_provider',
                    'saas.decorators.requires_agreement']),
    url_prefixed(r'app/',
        AppView.as_view(template_name='app.html'), name='app',
        decorators=['django.contrib.auth.decorators.login_required']),
]
Пример #3
0
              include('saas.urls.api.provider.billing'),
              decorators=['saas.decorators.requires_direct']),
 url_prefixed(r'api/',
              include('saas.urls.api.provider.profile'),
              decorators=['saas.decorators.requires_direct']),
 url_prefixed(r'api/',
              include('saas.urls.api.provider.metrics'),
              decorators=['saas.decorators.requires_direct']),
 url_prefixed(r'api/',
              include('saas.urls.api.subscriber'),
              decorators=['saas.decorators.requires_provider']),
 url_prefixed(r'pricing/',
              CartPlanListView.as_view(),
              name='saas_cart_plan_list'),
 url_prefixed(r'users/$',
              UserRedirectView.as_view(),
              name='accounts_profile',
              decorators=['django.contrib.auth.decorators.login_required']),
 url_prefixed(r'',
              include('saas.urls.request'),
              decorators=['django.contrib.auth.decorators.login_required']),
 url_prefixed(r'', include('saas.urls.noauth')),
 url_prefixed(r'',
              include('saas.urls.provider'),
              decorators=['saas.decorators.requires_direct']),
 url_prefixed(r'',
              include('saas.urls.broker'),
              decorators=['saas.decorators.requires_direct']),
 url_prefixed(r'',
              include('saas.urls.subscriber'),
              decorators=[
Пример #4
0
urlpatterns = [
    # admin doc and panel
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url_prefixed(r'register/$',
        PersonalRegistrationView.as_view(
            success_url=reverse_lazy('home')),
        name='registration_register'),
    url_prefixed(r'^', include('saas.urls.users'),
        decorators=['django.contrib.auth.decorators.login_required']),
    url_prefixed(r'users/(?P<user>[\w.@+-]+)/',
        UserProfileView.as_view(), name='users_profile',
        decorators=['django.contrib.auth.decorators.login_required']),
    url_prefixed(r'users/',
        UserRedirectView.as_view(), name='users_profile_base',
        decorators=['django.contrib.auth.decorators.login_required']),
    url_prefixed(r'', include('django.contrib.auth.urls')),
    url_prefixed(r'saas/$',
        OrganizationListView.as_view(), name='saas_organization_list',
        decorators=['django.contrib.auth.decorators.login_required']),
    url_prefixed(r'$', TemplateView.as_view(template_name='index.html'),
        name='home'),
    url_prefixed(r'billing/cart/',
        login_required(
            OrganizationRedirectView.as_view(
                implicit_create_on_none=True,
                pattern_name='saas_organization_cart'),
            login_url=reverse_lazy('registration_register')),
        name='saas_cart'),
    # saas urls with provider key to implement marketplace.