Merge "Address RemovedInDjango40Warning"
This commit is contained in:
commit
722ae8a051
|
@ -12,18 +12,18 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.conf.urls import url
|
from django.urls import re_path
|
||||||
|
|
||||||
from disaster_recovery.actions import views
|
from disaster_recovery.actions import views
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^$', views.IndexView.as_view(), name='index'),
|
re_path(r'^$', views.IndexView.as_view(), name='index'),
|
||||||
|
|
||||||
url(r'^create/(?P<action_id>[^/]+)?$',
|
re_path(r'^create/(?P<action_id>[^/]+)?$',
|
||||||
views.ActionWorkflowView.as_view(),
|
views.ActionWorkflowView.as_view(),
|
||||||
name='create'),
|
name='create'),
|
||||||
|
|
||||||
url(r'^action/(?P<action_id>[^/]+)?$',
|
re_path(r'^action/(?P<action_id>[^/]+)?$',
|
||||||
views.ActionView.as_view(),
|
views.ActionView.as_view(),
|
||||||
name='action'),
|
name='action'),
|
||||||
]
|
]
|
||||||
|
|
|
@ -16,13 +16,15 @@
|
||||||
URL patterns for the OpenStack Dashboard.
|
URL patterns for the OpenStack Dashboard.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from django.conf.urls import url
|
from django.urls import re_path
|
||||||
|
|
||||||
from disaster_recovery.api.rest import rest_api
|
from disaster_recovery.api.rest import rest_api
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^api/clients/$', rest_api.Clients.as_view(), name="api_clients"),
|
re_path(r'^api/clients/$', rest_api.Clients.as_view(),
|
||||||
url(r'^api/actions/$', rest_api.ActionList.as_view(), name="api_actions"),
|
name="api_clients"),
|
||||||
url(r'^api/actions/job/(?P<job_id>[^/]+)?$',
|
re_path(r'^api/actions/$', rest_api.ActionList.as_view(),
|
||||||
rest_api.Actions.as_view(), name="api_actions_in_job"),
|
name="api_actions"),
|
||||||
|
re_path(r'^api/actions/job/(?P<job_id>[^/]+)?$',
|
||||||
|
rest_api.Actions.as_view(), name="api_actions_in_job"),
|
||||||
]
|
]
|
||||||
|
|
|
@ -13,15 +13,16 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
|
||||||
from django.conf.urls import url
|
from django.urls import re_path
|
||||||
|
|
||||||
from disaster_recovery.backups import views
|
from disaster_recovery.backups import views
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^$', views.IndexView.as_view(), name='index'),
|
re_path(r'^$', views.IndexView.as_view(), name='index'),
|
||||||
url(r'^(?P<backup_id>[^/]*)$', views.DetailView.as_view(), name='detail'),
|
re_path(r'^(?P<backup_id>[^/]*)$', views.DetailView.as_view(),
|
||||||
url(r'^restore/(?P<backup_id>.*)$',
|
name='detail'),
|
||||||
views.RestoreView.as_view(),
|
re_path(r'^restore/(?P<backup_id>.*)$',
|
||||||
name='restore'),
|
views.RestoreView.as_view(),
|
||||||
|
name='restore'),
|
||||||
]
|
]
|
||||||
|
|
|
@ -12,14 +12,14 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.conf.urls import url
|
from django.urls import re_path
|
||||||
|
|
||||||
from disaster_recovery.clients import views
|
from disaster_recovery.clients import views
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^$', views.IndexView.as_view(), name='index'),
|
re_path(r'^$', views.IndexView.as_view(), name='index'),
|
||||||
|
|
||||||
url(r'^(?P<client_id>[^/]+)?$',
|
re_path(r'^(?P<client_id>[^/]+)?$',
|
||||||
views.ClientView.as_view(),
|
views.ClientView.as_view(),
|
||||||
name='client'),
|
name='client'),
|
||||||
]
|
]
|
||||||
|
|
|
@ -12,27 +12,27 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.conf.urls import url
|
from django.urls import re_path
|
||||||
from disaster_recovery.jobs import views
|
from disaster_recovery.jobs import views
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^(?P<job_id>[^/]+)?$',
|
re_path(r'^(?P<job_id>[^/]+)?$',
|
||||||
views.JobsView.as_view(),
|
views.JobsView.as_view(),
|
||||||
name='index'),
|
name='index'),
|
||||||
|
|
||||||
url(r'^create/$',
|
re_path(r'^create/$',
|
||||||
views.JobWorkflowView.as_view(),
|
views.JobWorkflowView.as_view(),
|
||||||
name='create'),
|
name='create'),
|
||||||
|
|
||||||
url(r'^configure/(?P<job_id>[^/]+)?$',
|
re_path(r'^configure/(?P<job_id>[^/]+)?$',
|
||||||
views.JobWorkflowView.as_view(),
|
views.JobWorkflowView.as_view(),
|
||||||
name='configure'),
|
name='configure'),
|
||||||
|
|
||||||
url(r'^edit/(?P<job_id>[^/]+)?$',
|
re_path(r'^edit/(?P<job_id>[^/]+)?$',
|
||||||
views.EditJobWorkflowView.as_view(),
|
views.EditJobWorkflowView.as_view(),
|
||||||
name='edit_job'),
|
name='edit_job'),
|
||||||
|
|
||||||
url(r'^edit_actions/(?P<job_id>[^/]+)?$',
|
re_path(r'^edit_actions/(?P<job_id>[^/]+)?$',
|
||||||
views.ActionsInJobView.as_view(),
|
views.ActionsInJobView.as_view(),
|
||||||
name='edit_action'),
|
name='edit_action'),
|
||||||
]
|
]
|
||||||
|
|
|
@ -12,25 +12,25 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.conf.urls import url
|
from django.urls import re_path
|
||||||
|
|
||||||
from disaster_recovery.sessions import views
|
from disaster_recovery.sessions import views
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^(?P<session_id>[^/]+)?$',
|
re_path(r'^(?P<session_id>[^/]+)?$',
|
||||||
views.SessionsView.as_view(),
|
views.SessionsView.as_view(),
|
||||||
name='index'),
|
name='index'),
|
||||||
|
|
||||||
url(r'^attach_to_session/(?P<job_id>[^/]+)?$',
|
re_path(r'^attach_to_session/(?P<job_id>[^/]+)?$',
|
||||||
views.AttachToSessionWorkflow.as_view(),
|
views.AttachToSessionWorkflow.as_view(),
|
||||||
name='attach'),
|
name='attach'),
|
||||||
|
|
||||||
url(r'^create/$',
|
re_path(r'^create/$',
|
||||||
views.CreateSessionWorkflow.as_view(),
|
views.CreateSessionWorkflow.as_view(),
|
||||||
name='create'),
|
name='create'),
|
||||||
|
|
||||||
url(r'^edit/(?P<session_id>[^/]+)?$',
|
re_path(r'^edit/(?P<session_id>[^/]+)?$',
|
||||||
views.CreateSessionWorkflow.as_view(),
|
views.CreateSessionWorkflow.as_view(),
|
||||||
name='edit'),
|
name='edit'),
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.conf.urls import include
|
from django.conf.urls import include
|
||||||
from django.conf.urls import url
|
from django.urls import re_path
|
||||||
import disaster_recovery.api.rest.urls as rest_urls
|
import disaster_recovery.api.rest.urls as rest_urls
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'', include(rest_urls)),
|
re_path(r'', include(rest_urls)),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue