From 34e45b2af023dea9af56672bdd23ad1df535175c Mon Sep 17 00:00:00 2001 From: Cliff Dyer Date: Wed, 21 Feb 2018 16:55:07 -0500 Subject: [PATCH] Pin regexes to the start of the matched strings. --- openedx/core/djangoapps/plugins/README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openedx/core/djangoapps/plugins/README.rst b/openedx/core/djangoapps/plugins/README.rst index ec88b04706..1b68ef7bc7 100644 --- a/openedx/core/djangoapps/plugins/README.rst +++ b/openedx/core/djangoapps/plugins/README.rst @@ -129,7 +129,7 @@ class:: # The regex to provide to django's urls.url. # Optional; Defaults to r''. - PluginURLs.REGEX: r'api/my_app/', + PluginURLs.REGEX: r'^api/my_app/', # The python path (relative to this app) to the URLs module to be plugged into the project. # Optional; Defaults to u'urls'. @@ -197,7 +197,7 @@ OR use string constants when they cannot import from djangoapps.plugins:: u'url_config': { u'lms.djangoapp': { u'namespace': u'my_app', - u'regex': u'api/my_app/', + u'regex': u'^api/my_app/', u'relative_path': u'api.urls', } },