Example #1
0
urlpatterns += subproject_urls

environmentvariable_urls = [
    url(
        r'^(?P<project_slug>[-\w]+)/environmentvariables/$',
        EnvironmentVariableList.as_view(),
        name='projects_environmentvariables',
    ),
    url(
        r'^(?P<project_slug>[-\w]+)/environmentvariables/create/$',
        EnvironmentVariableCreate.as_view(),
        name='projects_environmentvariables_create',
    ),
    url(
        r'^(?P<project_slug>[-\w]+)/environmentvariables/(?P<environmentvariable_pk>[-\w]+)/delete/$',  # noqa
        EnvironmentVariableDelete.as_view(),
        name='projects_environmentvariables_delete',
    ),
]

urlpatterns += environmentvariable_urls

automation_rule_urls = [
    url(
        r'^(?P<project_slug>[-\w]+)/rules/$',
        AutomationRuleList.as_view(),
        name='projects_automation_rule_list',
    ),
    url(
        r'^(?P<project_slug>[-\w]+)/rules/(?P<automation_rule_pk>[-\w]+)/move/(?P<steps>-?\d+)/$',
        AutomationRuleMove.as_view(),
Example #2
0
        name='projects_subprojects_delete',
    ),
]

urlpatterns += subproject_urls

environmentvariable_urls = [
    url(
        r'^(?P<project_slug>[-\w]+)/environmentvariables/$',
        EnvironmentVariableList.as_view(),
        name='projects_environmentvariables',
    ),
    url(
        r'^(?P<project_slug>[-\w]+)/environmentvariables/create/$',
        EnvironmentVariableCreate.as_view(),
        name='projects_environmentvariables_create',
    ),
    url(
        r'^(?P<project_slug>[-\w]+)/environmentvariables/(?P<environmentvariable_pk>[-\w]+)/$',
        EnvironmentVariableDetail.as_view(),
        name='projects_environmentvariables_detail',
    ),
    url(
        r'^(?P<project_slug>[-\w]+)/environmentvariables/(?P<environmentvariable_pk>[-\w]+)/delete/$',
        EnvironmentVariableDelete.as_view(),
        name='projects_environmentvariables_delete',
    ),
]

urlpatterns += environmentvariable_urls