Merge pull request #17523 from edx/jcdyer-patch-1

Pin regexes to the start of the matched strings.
This commit is contained in:
Ned Batchelder
2018-02-22 14:17:45 -05:00
committed by GitHub

View File

@@ -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',
}
},