Address RemovedInDjango40Warning
In Django 3.1, django.conf.urls.url() is deprecated in favor of django.urls.re_path(). For more info see [1] These were already replaced in Horizon repo by [2]. [1] https://docs.djangoproject.com/en/4.0/releases/3.1/#id2 [2] https://review.opendev.org/c/openstack/horizon/+/827093 Change-Id: I90d44f7e8b3b0067c67dcdf9fbaf57b94e627d3c
This commit is contained in:
parent
1f6691e05c
commit
96c18c8cf5
@ -12,11 +12,11 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from django.conf.urls import url
|
||||
from django.urls import re_path
|
||||
|
||||
from octavia_dashboard.dashboards.project.load_balancer import views
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
url('', views.IndexView.as_view(), name='index'),
|
||||
re_path('', views.IndexView.as_view(), name='index'),
|
||||
]
|
||||
|
@ -13,9 +13,9 @@
|
||||
# under the License.
|
||||
|
||||
from django.conf.urls import include
|
||||
from django.conf.urls import url
|
||||
from django.urls import re_path
|
||||
import openstack_dashboard.urls
|
||||
|
||||
urlpatterns = [
|
||||
url(r'', include(openstack_dashboard.urls))
|
||||
re_path(r'', include(openstack_dashboard.urls))
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user