YAMAMOTO Takashi da8c4e4caf Use the new way to reference views
See https://docs.djangoproject.com/en/1.9/releases/1.8/#django-conf-urls-patterns

Closes-Bug: #1708118

----------------------------------------
This commit includes the following unrelated change
to pass the gate.

docs: Fix an import error

version.py was copied from neutron-vpnaas-dashboard
and modified a bit.

Closes-Bug: #1708145
Change-Id: I475a808cd4c7e940aee5306d7c33a1c9c16746c3
----------------------------------------

Change-Id: I0077105a13c7b6dd2c49fae17784dffb54e55cd9
2017-08-02 20:25:58 +09:00

26 lines
881 B
Python

# Copyright 2016, FUJITSU LABORATORIES LTD.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from django.conf.urls import url
from neutron_taas_dashboard.dashboards.project.tapservices.tapflows \
import views
TAP_FLOWS = r'^(?P<tap_flow_id>[^/]+)/%s$'
urlpatterns = [
url(TAP_FLOWS % 'detail', views.DetailView.as_view(), name='detail'),
]