Skip to content

Commit

Permalink
Replaced use of legacy django.conf.urls.url() by django.urls.path()
Browse files Browse the repository at this point in the history
  • Loading branch information
alorence committed Nov 18, 2021
1 parent f52585a commit fd7ef7f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/testsite/urls.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from django.conf.urls import url
from django.urls import path

from modernrpc.core import JSONRPC_PROTOCOL, XMLRPC_PROTOCOL
from modernrpc.views import RPCEntryPoint

urlpatterns = [
url(r'^all-rpc/', RPCEntryPoint.as_view(), name="generic_rpc_entry_point"),
url(r'^all-rpc-doc/', RPCEntryPoint.as_view(enable_doc=True, enable_rpc=False), name="generic_entry_point_doc"),
path('all-rpc/', RPCEntryPoint.as_view(), name="generic_rpc_entry_point"),
path('all-rpc-doc/', RPCEntryPoint.as_view(enable_doc=True, enable_rpc=False), name="generic_entry_point_doc"),

url(r'^json-only/', RPCEntryPoint.as_view(protocol=JSONRPC_PROTOCOL), name="json_rpc_entry_point"),
url(r'^xml-only/', RPCEntryPoint.as_view(protocol=XMLRPC_PROTOCOL), name="xml_rpc_entry_point"),
path('json-only/', RPCEntryPoint.as_view(protocol=JSONRPC_PROTOCOL), name="json_rpc_entry_point"),
path('xml-only/', RPCEntryPoint.as_view(protocol=XMLRPC_PROTOCOL), name="xml_rpc_entry_point"),
]

0 comments on commit fd7ef7f

Please sign in to comment.