Пример #1
0
        DomainCreate.as_view(),
        name='projects_domains_create'),
    url(r'^(?P<project_slug>[-\w]+)/domains/(?P<domain_pk>[-\w]+)/edit/$',
        DomainUpdate.as_view(),
        name='projects_domains_edit'),
    url(r'^(?P<project_slug>[-\w]+)/domains/(?P<domain_pk>[-\w]+)/delete/$',
        DomainDelete.as_view(),
        name='projects_domains_delete'),
]

urlpatterns += domain_urls

integration_urls = [
    url(r'^(?P<project_slug>{project_slug})/integrations/$'.format(
        **pattern_opts),
        IntegrationList.as_view(),
        name='projects_integrations'),
    url(r'^(?P<project_slug>{project_slug})/integrations/sync/$'.format(
        **pattern_opts),
        IntegrationWebhookSync.as_view(),
        name='projects_integrations_webhooks_sync'),
    url((r'^(?P<project_slug>{project_slug})/integrations/create/$'.format(
        **pattern_opts)),
        IntegrationCreate.as_view(),
        name='projects_integrations_create'),
    url((r'^(?P<project_slug>{project_slug})/'
         r'integrations/(?P<integration_pk>{integer_pk})/$'.format(
             **pattern_opts)),
        IntegrationDetail.as_view(),
        name='projects_integrations_detail'),
    url((r'^(?P<project_slug>{project_slug})/'
Пример #2
0
    ),
    url(
        r'^(?P<project_slug>[-\w]+)/domains/(?P<domain_pk>[-\w]+)/delete/$',
        DomainDelete.as_view(),
        name='projects_domains_delete',
    ),
]

urlpatterns += domain_urls

integration_urls = [
    url(
        r'^(?P<project_slug>{project_slug})/integrations/$'.format(
            **pattern_opts
        ),
        IntegrationList.as_view(),
        name='projects_integrations',
    ),
    url(
        r'^(?P<project_slug>{project_slug})/integrations/sync/$'.format(
            **pattern_opts
        ),
        IntegrationWebhookSync.as_view(),
        name='projects_integrations_webhooks_sync',
    ),
    url(
        (
            r'^(?P<project_slug>{project_slug})/integrations/create/$'.format(
                **pattern_opts
            )
        ),