monasca-ui/monitoring/alarmdefs/urls.py
Adrian Czarnecki eaeb997abd Fix incorrect django.conf.url patterns import
Remove Django patterns from code.
Patterns from django.conf.urls has been removed in Django 1.10.
Current Django version in devstack is 1.10.7
Remove global_settings.TEMPLATE_CONTEXT_PROCESSORS because this
variable has been removed in Django 1.10.

Story: 2001120
Task: 4811

Change-Id: I84a4aceb73abd37dab4acf43b9abf8b43c7f1625
2017-07-13 09:19:05 +00:00

30 lines
1.1 KiB
Python

# Copyright 2013 Hewlett-Packard Development Company, L.P.
#
# 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 # noqa
from monitoring.alarmdefs import views
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^alarm/create$',
views.AlarmCreateView.as_view(),
name='alarm_create'),
url(r'^(?P<id>[^/]+)/alarm_detail/$',
views.AlarmDetailView.as_view(),
name='alarm_detail'),
url(r'^alarm/(?P<id>[^/]+)/alarm_edit/$',
views.AlarmEditView.as_view(),
name='alarm_edit')
]