"""Cinder URLconf."""
# Copyright 2014 - 2015 Solinea, Inc.
#
# Licensed under the Solinea Software License Agreement (goldstone),
# Version 1.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.solinea.com/goldstone/LICENSE.pdf
#
# 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 expressed or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from django.conf.urls import patterns, url
from rest_framework.routers import DefaultRouter
from .views import ReportView, VolumesDataViewSet, \
    BackupsDataViewSet, SnapshotsDataViewSet, ServicesDataViewSet, \
    VolumeTypesDataViewSet, TransfersDataViewSet

# Views handled by DjangoRestFramework ViewSets.
router = DefaultRouter(trailing_slash=False)
router.register(r'^backups[/]?$',
                BackupsDataViewSet,
                base_name='cinder-backups')
router.register(r'^services[/]?$',
                ServicesDataViewSet,
                base_name='cinder-services')
router.register(r'^snapshots[/]?$',
                SnapshotsDataViewSet,
                base_name='cinder-snapshots')
router.register(r'^transfers[/]?$',
                TransfersDataViewSet,
                base_name='cinder-transfers')
router.register(r'^volumes[/]?$',
                VolumesDataViewSet,
                base_name='cinder-volumes')
router.register(r'^volume_types[/]?$',
                VolumeTypesDataViewSet,
                base_name='cinder-volume-types')

urlpatterns = router.urls

# Other views.
urlpatterns += patterns('',
                        url(r'^report[/]?$',
                            ReportView.as_view(),
                            name='cinder-report-view'),
                        )

"""Cinder URLconf."""
# Copyright 2014 - 2015 Solinea, Inc.
#
# Licensed under the Solinea Software License Agreement (goldstone),
# Version 1.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.solinea.com/goldstone/LICENSE.pdf
#
# 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 expressed or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from rest_framework.routers import DefaultRouter
from .views import VolumesDataViewSet, \
    BackupsDataViewSet, SnapshotsDataViewSet, ServicesDataViewSet, \
    VolumeTypesDataViewSet, TransfersDataViewSet

# Views handled by DjangoRestFramework ViewSets.
router = DefaultRouter(trailing_slash=False)
router.register(r'^backups[/]?$',
                BackupsDataViewSet,
                base_name='cinder-backups')
router.register(r'^services[/]?$',
                ServicesDataViewSet,
                base_name='cinder-services')
router.register(r'^snapshots[/]?$',
                SnapshotsDataViewSet,
                base_name='cinder-snapshots')
router.register(r'^transfers[/]?$',
                TransfersDataViewSet,
                base_name='cinder-transfers')
router.register(r'^volumes[/]?$',
                VolumesDataViewSet,
                base_name='cinder-volumes')
router.register(r'^volume_types[/]?$',
                VolumeTypesDataViewSet,
                base_name='cinder-volume-types')

urlpatterns = router.urls

Remove ReportView from cinder.urls.