-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: regex pattern keeps in endpoint #507
Comments
excellent find! |
i cannot reproduce your example. i extended the new test ...
urlpatterns = [
url('^service/(?P<code>[a-zA-Z0-9_\\-]+)/(?P<path>.*)', view_func)
]
....
assert '/service/{code}/{path}' in schema['paths'] are you on current master? |
this may be an issue with 'Django==2.2' or rather before version '3'. they had another bug in |
I got it. I am using django version 2.2.24. I have to move latest version.This old version will be no longer supported on next year. |
Endpoint should be
/file/{filename}.{ext}
. Possible generate from pattern to text (ex: "\" is removed) .The text was updated successfully, but these errors were encountered: