Fix django warning
When launching the server, the following message appears: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead. This commit fix this warning in app-catalog/openstack_catalog/urls.py:7 Change-Id: Id3ba43d9ce2d81985a66adfecc06c3102a14a94f
This commit is contained in:
parent
a1755e8c87
commit
68f4a40158
@ -1,9 +1,8 @@
|
||||
from django.conf.urls import patterns
|
||||
from django.conf.urls import url
|
||||
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
||||
|
||||
from openstack_catalog import views
|
||||
|
||||
urlpatterns = patterns('', url(r'^$', views.index))
|
||||
urlpatterns = [url(r'^$', views.index)]
|
||||
|
||||
urlpatterns += staticfiles_urlpatterns()
|
||||
|
Loading…
Reference in New Issue
Block a user